Package org.hippoecm.repository.api
Interface StringCodecService
-
public interface StringCodecService
ProvidesStringCodec
instances for certain encodings, possibly customized for a certain locale.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
StringCodecService.Encoding
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringCodec
getStringCodec(StringCodecService.Encoding encoding)
Returns the default string codec for a certain encoding.StringCodec
getStringCodec(StringCodecService.Encoding encoding, String locale)
Returns the string codec for a certain encoding that is best suited for the given locale.
-
-
-
Method Detail
-
getStringCodec
StringCodec getStringCodec(StringCodecService.Encoding encoding)
Returns the default string codec for a certain encoding. Equivalent to callinggetStringCodec(Encoding, String)
with a null locale.- Parameters:
encoding
- the type of encoding- Returns:
- the default string codec for the given encoding
-
getStringCodec
StringCodec getStringCodec(StringCodecService.Encoding encoding, String locale)
Returns the string codec for a certain encoding that is best suited for the given locale.- Parameters:
encoding
- the type of encodinglocale
- the locale the string codec will be used for. Can be null.- Returns:
- the best matching string codec, or the default string codec if no specific one could be found.
-
-