|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.nio.charset.CharsetEncoder
com.sun.pdfview.PDFDocCharsetEncoder
public class PDFDocCharsetEncoder
Encodes into a PDFDocEncoding representation. Note that only 256 characters (if that) are represented in the PDFDocEncoding, so users should be prepared to deal with unmappable character exceptions.
Constructor Summary | |
---|---|
PDFDocCharsetEncoder()
|
Method Summary | |
---|---|
protected java.nio.charset.CoderResult |
encodeLoop(java.nio.CharBuffer in,
java.nio.ByteBuffer out)
|
static boolean |
isIdentityEncoding(char ch)
Identify whether a particular character preserves the same byte value upon encoding in PDFDocEncoding |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PDFDocCharsetEncoder()
Method Detail |
---|
public static boolean isIdentityEncoding(char ch)
ch
- the character
protected java.nio.charset.CoderResult encodeLoop(java.nio.CharBuffer in, java.nio.ByteBuffer out)
encodeLoop
in class java.nio.charset.CharsetEncoder
public boolean isLegalReplacement(byte[] repl)
isLegalReplacement
in class java.nio.charset.CharsetEncoder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |