|
jPod PDF library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.intarsys.pdf.encoding.Encoding
de.intarsys.pdf.encoding.CMapEncoding
public class CMapEncoding
This is a wrapper implementation around the CMap definition in the /Encoding entry for a Type0 font.
Field Summary |
---|
Constructor Summary | |
---|---|
CMapEncoding(CMap map)
|
Method Summary | |
---|---|
COSObject |
cosGetObject()
Get an object that can be used as a representation of the receiver encoding within doc . |
int |
getDecoded(int codepoint)
Get the character for the codepoint or -1 if not available. |
int |
getEncoded(int character)
Get the codepoint for the the character or -1 if invalid. |
int |
getEncoded(String name)
Get the codepoint for the the named character or -1 if invalid. |
String |
getGlyphName(int codepoint)
Get the character name for a given encoded codepoint. |
String |
getName()
The name of this encoding. |
int |
getNextDecoded(InputStream is)
Get the next decoded character from the input stream. |
int |
getNextEncoded(InputStream is)
The next codepoint from the input stream. |
void |
putNextDecoded(OutputStream os,
int character)
Put the next character onto the input stream after encoding. |
void |
putNextEncoded(OutputStream os,
int codepoint)
Put the next codepoint onto the input stream. |
Methods inherited from class de.intarsys.pdf.encoding.Encoding |
---|
createNamed, createReader, createWriter, decode, decode, decode, encode, encode, encode, encode, getDifferenceDecoded, getDifferenceGlyphName, getValidEncoded, getValidEncoded, isEncodable, isEncodable, isEncodable, isFontSpecificEncoding, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CMapEncoding(CMap map)
Method Detail |
---|
public COSObject cosGetObject()
Encoding
doc
.
cosGetObject
in class Encoding
doc
.public int getDecoded(int codepoint)
Encoding
getDecoded
in class Encoding
codepoint
- The codepoint
public int getEncoded(int character)
Encoding
getEncoded
in class Encoding
character
- The character to look up.
public int getEncoded(String name)
Encoding
getEncoded
in class Encoding
name
- The character name to look up.
public String getGlyphName(int codepoint)
Encoding
getGlyphName
in class Encoding
codepoint
- The encoded codepoint.
codepoint
or ".notdef".public String getName()
Encoding
getName
in class Encoding
public int getNextDecoded(InputStream is) throws IOException
Encoding
getNextDecoded
in class Encoding
is
- The input stream with encoded data.
IOException
public int getNextEncoded(InputStream is) throws IOException
Encoding
getNextEncoded
in class Encoding
is
- The input stream with encoded data.
IOException
public void putNextDecoded(OutputStream os, int character) throws IOException
Encoding
putNextDecoded
in class Encoding
os
- The stream to write the bytes.character
- The character to be encoded.
IOException
public void putNextEncoded(OutputStream os, int codepoint) throws IOException
Encoding
putNextEncoded
in class Encoding
os
- The stream to write the bytes.codepoint
- The codepoint.
IOException
|
jPod PDF library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |