Package com.sun.pdfview
Class Identity8BitCharsetEncoder
- java.lang.Object
-
- java.nio.charset.CharsetEncoder
-
- com.sun.pdfview.Identity8BitCharsetEncoder
-
public class Identity8BitCharsetEncoder extends java.nio.charset.CharsetEncoder
ACharsetEncoder
that attempts to write out the lower 8 bits of any character. Characters >= 256 in value are regarded as unmappable.
-
-
Constructor Summary
Constructors Constructor Description Identity8BitCharsetEncoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.nio.charset.CoderResult
encodeLoop(java.nio.CharBuffer in, java.nio.ByteBuffer out)
boolean
isLegalReplacement(byte[] repl)
-
Methods inherited from class java.nio.charset.CharsetEncoder
averageBytesPerChar, canEncode, canEncode, charset, encode, encode, flush, implFlush, implOnMalformedInput, implOnUnmappableCharacter, implReplaceWith, implReset, malformedInputAction, maxBytesPerChar, onMalformedInput, onUnmappableCharacter, replacement, replaceWith, reset, unmappableCharacterAction
-
-
-
-
Method Detail
-
encodeLoop
protected java.nio.charset.CoderResult encodeLoop(java.nio.CharBuffer in, java.nio.ByteBuffer out)
- Specified by:
encodeLoop
in classjava.nio.charset.CharsetEncoder
-
isLegalReplacement
public boolean isLegalReplacement(byte[] repl)
- Overrides:
isLegalReplacement
in classjava.nio.charset.CharsetEncoder
-
-