public class LayerProvider extends Object implements ILayerProvider
| Constructor and Description |
|---|
LayerProvider() |
LayerProvider(CharsetEncoder outputEncoder,
String lineBreak) |
| Modifier and Type | Method and Description |
|---|---|
String |
encode(char value,
EncoderContext context)
Encodes a given character with this encoding.
|
String |
encode(int value,
EncoderContext context)
Encodes a given code-point with this encoding.
|
String |
encode(String text,
EncoderContext context)
Encodes a given text with this encoder.
|
String |
endCode()
Gets the string denoting the end of external codes.
|
String |
endInline()
Gets the string denoting the end of inline codes.
|
String |
endSegment()
Gets the string denoting the end of a bilingual segment.
|
CharsetEncoder |
getCharsetEncoder()
Gets the character set encoder used for this encoder.
|
String |
getEncoding()
Gets the name of the charset encoding to use.
|
String |
getLineBreak()
Gets the line-break to use for this encoder.
|
IParameters |
getParameters()
Gets the parameters object with all the configuration information specific to
this encoder.
|
String |
midSegment(int leverage)
Gets the string for the separator at the middle of a bilingual segment.
|
void |
reset()
Reset state in this encoder in preparation for processing new content.
|
void |
setOptions(IParameters params,
String encoding,
String lineBreak)
Sets the options for this encoder.
|
String |
startCode()
Gets the string denoting the start of external codes.
|
String |
startInline()
Gets the string denoting the start of inline codes.
|
String |
startSegment()
Gets the string denoting the start of a bilingual segment.
|
String |
toNative(String propertyName,
String value)
Converts any property values from its standard representation to the native
representation for this encoder.
|
public LayerProvider()
public LayerProvider(CharsetEncoder outputEncoder, String lineBreak)
public void reset()
IEncoderpublic String endCode()
ILayerProviderendCode in interface ILayerProviderpublic String endInline()
ILayerProviderendInline in interface ILayerProviderpublic String startCode()
ILayerProviderstartCode in interface ILayerProviderpublic String startInline()
ILayerProviderstartInline in interface ILayerProviderpublic String startSegment()
ILayerProviderstartSegment in interface ILayerProviderpublic String endSegment()
ILayerProviderendSegment in interface ILayerProviderpublic String midSegment(int leverage)
ILayerProvidermidSegment in interface ILayerProviderleverage - Indicator of leverage to optionally place in the separator.public String encode(String text, EncoderContext context)
IEncoderpublic String encode(char value, EncoderContext context)
IEncoderpublic String encode(int value, EncoderContext context)
IEncoderpublic void setOptions(IParameters params, String encoding, String lineBreak)
IEncodersetOptions in interface IEncoderparams - the parameters object with all the configuration information
specific to this encoder.encoding - the name of the charset encoding to use.lineBreak - the type of line break to use.public String toNative(String propertyName, String value)
IEncoderpublic String getLineBreak()
IEncodergetLineBreak in interface IEncoderpublic CharsetEncoder getCharsetEncoder()
IEncodergetCharsetEncoder in interface IEncoderpublic IParameters getParameters()
IEncodergetParameters in interface IEncoderpublic String getEncoding()
IEncodergetEncoding in interface IEncoderCopyright © 2022. All rights reserved.