class XMLCommentEncoder extends Encoder
| Modifier and Type | Field and Description |
|---|---|
(package private) static char |
HYPHEN_REPLACEMENT
This is the character used to replace a hyphen when a sequence of hypens is encountered.
|
| Constructor and Description |
|---|
XMLCommentEncoder() |
| Modifier and Type | Method and Description |
|---|---|
protected java.nio.charset.CoderResult |
encodeArrays(java.nio.CharBuffer input,
java.nio.CharBuffer output,
boolean endOfInput)
The core encoding loop used when both the input and output buffers
are array backed.
|
protected int |
firstEncodedOffset(java.lang.String input,
int off,
int len)
Scans the input string for the first character index that requires
encoding.
|
protected int |
maxEncodedLength(int n)
Returns the maximum encoded length (in chars) of an input sequence of
n characters. |
java.lang.String |
toString() |
encode, encodeBuffers, overflow, underflowstatic final char HYPHEN_REPLACEMENT
protected int maxEncodedLength(int n)
Encodern characters.maxEncodedLength in class Encodern - the number of characters of inputprotected int firstEncodedOffset(java.lang.String input,
int off,
int len)
EncoderfirstEncodedOffset in class Encoderinput - the input to check for encodingoff - the offset of the first character to checklen - the number of characters to checkoff+len if no characters in the input require encoding.protected java.nio.charset.CoderResult encodeArrays(java.nio.CharBuffer input,
java.nio.CharBuffer output,
boolean endOfInput)
EncoderencodeArrays in class Encoderinput - the input buffer.output - the output buffer.endOfInput - when true, this is the last input to encodepublic java.lang.String toString()
toString in class java.lang.Object