Class TCharsetDecoder
java.lang.Object
org.teavm.classlib.java.nio.charset.TCharsetDecoder
- Direct Known Subclasses:
TBufferedDecoder
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
TCharsetDecoder(TCharset cs, float averageCharsPerByte, float maxCharsPerByte)
-
Method Summary
Modifier and TypeMethodDescriptionfloat
charset()
decode(TByteBuffer in)
decode(TByteBuffer in, TCharBuffer out, boolean endOfInput)
protected abstract TCoderResult
decodeLoop(TByteBuffer in, TCharBuffer out)
flush(TCharBuffer out)
protected TCoderResult
implFlush(TCharBuffer out)
protected void
implOnMalformedInput(TCodingErrorAction newAction)
protected void
implOnUnmappableCharacter(TCodingErrorAction newAction)
protected void
implReplaceWith(String newReplacement)
protected void
boolean
boolean
float
onMalformedInput(TCodingErrorAction newAction)
onUnmappableCharacter(TCodingErrorAction newAction)
replaceWith(String newReplacement)
reset()
-
Constructor Details
-
TCharsetDecoder
-
-
Method Details
-
charset
-
replacement
-
replaceWith
-
implReplaceWith
-
malformedInputAction
-
onMalformedInput
-
implOnMalformedInput
-
unmappableCharacterAction
-
onUnmappableCharacter
-
implOnUnmappableCharacter
-
averageCharsPerByte
public final float averageCharsPerByte() -
maxCharsPerByte
public final float maxCharsPerByte() -
decode
-
flush
-
reset
-
decode
- Throws:
TCharacterCodingException
-
isAutoDetecting
public boolean isAutoDetecting() -
isCharsetDetected
public boolean isCharsetDetected() -
detectedCharset
-
decodeLoop
-
implFlush
-
implReset
protected void implReset()
-