public class JbasePrivateUseCharsetEncoder
extends java.nio.charset.CharsetEncoder
An engine that can transform a sequence of bytes in a jBASE private use charset into a sequence of sixteen-bit Unicode characters.
The jBASE charset set is very similiar to the UTF-8 charset
except for 3 bytes that are used to delimit attributes, values,
and subvalues in a dynamic array. These bytes 0xfe, 0xfd, and
0xfc respectively are not used in the UTF-8 charset and are
therefore able to be converted bi-directionally with Unicode Private
Use Area (U+E000 - U+F8FF) as follows:
Modifier | Constructor and Description |
---|---|
protected |
JbasePrivateUseCharsetEncoder(JbasePrivateUseCharset charset,
java.nio.charset.CharsetEncoder baseEncoder) |
Modifier and Type | Method and Description |
---|---|
protected java.nio.charset.CoderResult |
encodeLoop(java.nio.CharBuffer inCharBuffer,
java.nio.ByteBuffer outByteBuffer)
Convert the incoming unicode char buffer to a jBASE byte buffer
|
protected void |
implOnMalformedInput(java.nio.charset.CodingErrorAction newAction) |
protected void |
implOnUnmappableCharacter(java.nio.charset.CodingErrorAction newAction) |
protected void |
implReplaceWith(byte[] newReplacement) |
averageBytesPerChar, canEncode, canEncode, charset, encode, encode, flush, implFlush, implReset, isLegalReplacement, malformedInputAction, maxBytesPerChar, onMalformedInput, onUnmappableCharacter, replacement, replaceWith, reset, unmappableCharacterAction
protected JbasePrivateUseCharsetEncoder(JbasePrivateUseCharset charset, java.nio.charset.CharsetEncoder baseEncoder)
protected void implOnMalformedInput(java.nio.charset.CodingErrorAction newAction)
implOnMalformedInput
in class java.nio.charset.CharsetEncoder
protected void implOnUnmappableCharacter(java.nio.charset.CodingErrorAction newAction)
implOnUnmappableCharacter
in class java.nio.charset.CharsetEncoder
protected void implReplaceWith(byte[] newReplacement)
implReplaceWith
in class java.nio.charset.CharsetEncoder
protected java.nio.charset.CoderResult encodeLoop(java.nio.CharBuffer inCharBuffer, java.nio.ByteBuffer outByteBuffer)
encodeLoop
in class java.nio.charset.CharsetEncoder