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 TypeMethodDescriptionfinal float
final TCharset
charset()
final TCharBuffer
decode
(TByteBuffer in) final TCoderResult
decode
(TByteBuffer in, TCharBuffer out, boolean endOfInput) protected abstract TCoderResult
decodeLoop
(TByteBuffer in, TCharBuffer out) final TCoderResult
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
final float
final TCharsetDecoder
onMalformedInput
(TCodingErrorAction newAction) final TCharsetDecoder
onUnmappableCharacter
(TCodingErrorAction newAction) final String
final TCharsetDecoder
replaceWith
(String newReplacement) final TCharsetDecoder
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()
-