public interface MetadataReformatter
ReformatMetadata
which will always invoke the reformat(String, AdaptrisMessage)
variant which by
default delegates immediately to reformat(String, String)
. If you are simple reformatter, then you only need to
implement reformat(String, String)
Modifier and Type | Method and Description |
---|---|
default java.lang.String |
reformat(java.lang.String s,
AdaptrisMessage msg)
Reformat a metadata value
|
default java.lang.String |
reformat(java.lang.String s,
java.lang.String msgCharset)
Reformat a metadata value
|
default java.lang.String reformat(java.lang.String s, java.lang.String msgCharset) throws java.lang.Exception
s
- the string to reformatmsgCharset
- the charset of the messagejava.lang.Exception
default java.lang.String reformat(java.lang.String s, AdaptrisMessage msg) throws java.lang.Exception
s
- the string to reformatmsg
- the current Mesage.Exception.
java.lang.Exception
reformat(String, String)
with
InterlokMessage.getContentEncoding()
.