public class MarkdownEncoder extends DefaultEncoder
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_CHARACTERS_TO_ESCAPE |
| Constructor and Description |
|---|
MarkdownEncoder() |
| 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.
|
IParameters |
getParameters()
Gets the parameters object with all the configuration information specific to
this encoder.
|
void |
setOptions(IParameters params,
String encoding,
String lineBreak)
Sets the options for this encoder.
|
getCharsetEncoder, getEncoding, getLineBreak, reset, setLineBreak, toNativepublic static final String DEFAULT_CHARACTERS_TO_ESCAPE
public void setOptions(IParameters params, String encoding, String lineBreak)
IEncodersetOptions in interface IEncodersetOptions in class DefaultEncoderparams - 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)
IEncoderencode in interface IEncoderencode in class DefaultEncodertext - the text to encode.context - the context of the text: 0=text, 1=skeleton, 2=inline.public String encode(char value, EncoderContext context)
IEncoderencode in interface IEncoderencode in class DefaultEncodervalue - the character to encode.context - the context of the character: 0=text, 1=skeleton, 2=inline.public String encode(int value, EncoderContext context)
IEncoderencode in interface IEncoderencode in class DefaultEncodervalue - the code-point to encode.context - the context of the character: 0=text, 1=skeleton, 2=inline.public IParameters getParameters()
IEncodergetParameters in interface IEncodergetParameters in class DefaultEncoderCopyright © 2022. All rights reserved.