Class TCharsetEncoder
java.lang.Object
org.teavm.classlib.java.nio.charset.TCharsetEncoder
- Direct Known Subclasses:
TBufferedEncoder
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTCharsetEncoder(TCharset cs, float averageBytesPerChar, float maxBytesPerChar) protectedTCharsetEncoder(TCharset cs, float averageBytesPerChar, float maxBytesPerChar, byte[] replacement) -
Method Summary
Modifier and TypeMethodDescriptionfinal floatbooleancanEncode(char c) booleancanEncode(CharSequence sequence) final TCharsetcharset()final TByteBufferencode(TCharBuffer in) final TCoderResultencode(TCharBuffer in, TByteBuffer out, boolean endOfInput) protected abstract TCoderResultencodeLoop(TCharBuffer in, TByteBuffer out) final TCoderResultflush(TByteBuffer out) protected TCoderResultimplFlush(TByteBuffer out) protected voidimplOnMalformedInput(TCodingErrorAction newAction) protected voidimplOnUnmappableCharacter(TCodingErrorAction newAction) protected voidimplReplaceWith(byte[] newReplacement) protected voidfinal floatfinal TCharsetEncoderonMalformedInput(TCodingErrorAction newAction) final TCharsetEncoderonUnmappableCharacter(TCodingErrorAction newAction) final byte[]final TCharsetEncoderreplaceWith(byte[] newReplacement) final TCharsetEncoderreset()
-
Constructor Details
-
TCharsetEncoder
protected TCharsetEncoder(TCharset cs, float averageBytesPerChar, float maxBytesPerChar, byte[] replacement) -
TCharsetEncoder
-
-
Method Details
-
charset
-
replacement
public final byte[] replacement() -
replaceWith
-
implReplaceWith
protected void implReplaceWith(byte[] newReplacement) -
malformedInputAction
-
onMalformedInput
-
implOnMalformedInput
-
unmappableCharacterAction
-
onUnmappableCharacter
-
implOnUnmappableCharacter
-
averageBytesPerChar
public final float averageBytesPerChar() -
maxBytesPerChar
public final float maxBytesPerChar() -
encode
-
encode
- Throws:
TCharacterCodingException
-
encodeLoop
-
canEncode
public boolean canEncode(char c) -
canEncode
-
flush
-
implFlush
-
reset
-
implReset
protected void implReset()
-