| Constructor and Description |
|---|
DTDEncoder() |
| 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.
|
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.
|
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 |
toNative(String propertyName,
String value)
Converts any property values from its standard representation to the native
representation for this encoder.
|
public void reset()
IEncoderpublic void setOptions(IParameters params, String encoding, String lineBreak)
setOptions 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 encode(String text, EncoderContext context)
IEncoderpublic String encode(char value, EncoderContext context)
IEncoderpublic String encode(int value, EncoderContext context)
IEncoderpublic 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 © 2021. All rights reserved.