public class JbasePrivateUseCharsetDecoder
extends java.nio.charset.CharsetDecoder
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 |
JbasePrivateUseCharsetDecoder(JbasePrivateUseCharset charset,
java.nio.charset.CharsetDecoder baseDecoder) |
Modifier and Type | Method and Description |
---|---|
protected java.nio.ByteBuffer |
checkBuffer(java.nio.ByteBuffer buffer,
int newDataLength) |
protected java.nio.charset.CoderResult |
decodeLoop(java.nio.ByteBuffer inBytesBuffer,
java.nio.CharBuffer outCharBuffer)
Convert the incoming jBASE bytes into Unicode char buffer
|
protected void |
implOnMalformedInput(java.nio.charset.CodingErrorAction newAction) |
protected void |
implOnUnmappableCharacter(java.nio.charset.CodingErrorAction newAction) |
protected void |
implReplaceWith(java.lang.String newReplacement) |
averageCharsPerByte, charset, decode, decode, detectedCharset, flush, implFlush, implReset, isAutoDetecting, isCharsetDetected, malformedInputAction, maxCharsPerByte, onMalformedInput, onUnmappableCharacter, replacement, replaceWith, reset, unmappableCharacterAction
protected JbasePrivateUseCharsetDecoder(JbasePrivateUseCharset charset, java.nio.charset.CharsetDecoder baseDecoder)
protected void implOnMalformedInput(java.nio.charset.CodingErrorAction newAction)
implOnMalformedInput
in class java.nio.charset.CharsetDecoder
protected void implOnUnmappableCharacter(java.nio.charset.CodingErrorAction newAction)
implOnUnmappableCharacter
in class java.nio.charset.CharsetDecoder
protected void implReplaceWith(java.lang.String newReplacement)
implReplaceWith
in class java.nio.charset.CharsetDecoder
protected java.nio.charset.CoderResult decodeLoop(java.nio.ByteBuffer inBytesBuffer, java.nio.CharBuffer outCharBuffer)
decodeLoop
in class java.nio.charset.CharsetDecoder
protected java.nio.ByteBuffer checkBuffer(java.nio.ByteBuffer buffer, int newDataLength)