Package org.hippoecm.repository.api
Interface StringCodecService
public interface StringCodecService
Provides
StringCodec
instances for certain encodings, possibly customized for a certain locale.-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetStringCodec
(StringCodecService.Encoding encoding) Returns the default string codec for a certain encoding.getStringCodec
(StringCodecService.Encoding encoding, String locale) Returns the string codec for a certain encoding that is best suited for the given locale.
-
Method Details
-
getStringCodec
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
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.
-