abstract class BitsCharsetDecoderCreatesSurrogates extends BitsCharsetDecoderByteSize
Some encodings need state, but only for the storing of a low surrogate pair. This encapsulates that logic. When a class extends this class, it ust implement deocodeOneUnicodeChar, which should decode one char, and if there is a high/low surrogate pair it should call setLowSurrgoate on the low and return the high.
- Alphabetic
- By Inheritance
- BitsCharsetDecoderCreatesSurrogates
- BitsCharsetDecoderByteSize
- BitsCharsetDecoder
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new BitsCharsetDecoderCreatesSurrogates()
Type Members
- class BitsCharsetDecoderSurrogateState extends BitsCharsetDecoderState
Abstract Value Members
-
abstract
def
decodeOneUnicodeChar(dis: InputSourceDataInputStream, finfo: FormatInfo): Char
- Attributes
- protected
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
decode(dis: InputSourceDataInputStream, finfo: FormatInfo, chars: CharBuffer, bitPositions: LongBuffer = null): Int
Decode multiple characters into a CharBuffer, keeping track of the bit positions after each Char decode
Decode multiple characters into a CharBuffer, keeping track of the bit positions after each Char decode
Decodes at most chars.remaining() characters in the chars CharBuffer. If bitPositions is provided, for each decoded character the bitPosition0b where the character decode operation finished is stored in the bitPositions LongBuffer. Upon return of the decode operation, the bitPosition0b of the InputSourceDataInputStream will be the end of the last successful character decode operation. Returns the number of successfully decode characters.
- Definition Classes
- BitsCharsetDecoder
-
final
def
decodeOneChar(dis: InputSourceDataInputStream, finfo: FormatInfo): Char
Decode a single character
Decode a single character
This should read data via the InputSourceDataInputStream in whatever manner is most efficient, as long as at the end of the decode the bitPosition0b is set to to end of the character.
If there was a decode error, the bit position should be set to the end of malformed bits and a BitsCharsetDecoderMalformedException should be thrown specifying how many bits were malformed.
- Attributes
- protected
- Definition Classes
- BitsCharsetDecoderCreatesSurrogates → BitsCharsetDecoder
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getByte(dis: InputSourceDataInputStream, bitsConsumedSoFar: Int): Int
- Attributes
- protected
- Definition Classes
- BitsCharsetDecoderByteSize
- Annotations
- @inline()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
reset(): Unit
- Definition Classes
- BitsCharsetDecoderCreatesSurrogates → BitsCharsetDecoderByteSize → BitsCharsetDecoder
-
def
setLowSurrogate(low: Char): Unit
- Attributes
- protected
-
var
state: BitsCharsetDecoderSurrogateState
- Attributes
- protected
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()