Class TCharsetDecoder
java.lang.Object
org.teavm.classlib.java.nio.charset.TCharsetDecoder
- Direct Known Subclasses:
TBufferedDecoder
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTCharsetDecoder(TCharset cs, float averageCharsPerByte, float maxCharsPerByte) -
Method Summary
Modifier and TypeMethodDescriptionfinal floatfinal TCharsetcharset()final TCharBufferdecode(TByteBuffer in) final TCoderResultdecode(TByteBuffer in, TCharBuffer out, boolean endOfInput) protected abstract TCoderResultdecodeLoop(TByteBuffer in, TCharBuffer out) final TCoderResultflush(TCharBuffer out) protected TCoderResultimplFlush(TCharBuffer out) protected voidimplOnMalformedInput(TCodingErrorAction newAction) protected voidimplOnUnmappableCharacter(TCodingErrorAction newAction) protected voidimplReplaceWith(String newReplacement) protected voidbooleanbooleanfinal floatfinal TCharsetDecoderonMalformedInput(TCodingErrorAction newAction) final TCharsetDecoderonUnmappableCharacter(TCodingErrorAction newAction) final Stringfinal TCharsetDecoderreplaceWith(String newReplacement) final TCharsetDecoderreset()
-
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()
-