|
jPod PDF library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.intarsys.pdf.cos.COSBasedObject
de.intarsys.pdf.font.CMap
public abstract class CMap
A character map. This object can map from codepoints to CID's which can be used to select glyphs in a CID keyed font object.
Nested Class Summary | |
---|---|
static class |
CMap.MetaClass
The meta class implementation |
Field Summary | |
---|---|
static CMap.MetaClass |
META
The meta class instance |
Method Summary | |
---|---|
abstract char[] |
getChars(int codepoint)
Get the char[] for the codepoint or null if not available. |
abstract int |
getDecoded(int codepoint)
Get the character for the codepoint or -1 if not available. |
abstract int |
getEncoded(int character)
Get the codepoint for the the character or -1 if invalid. |
abstract int |
getNextDecoded(InputStream is)
Get the next decoded character from the input stream. |
abstract int |
getNextEncoded(InputStream is)
The next codepoint from the input stream. |
abstract void |
putNextDecoded(OutputStream os,
int character)
Put the next character onto the input stream after encoding. |
abstract void |
putNextEncoded(OutputStream os,
int codepoint)
Put the next codepoint onto the input stream. |
static int |
toInt(byte[] bytes)
|
static int |
toInt(byte[] bytes,
int offset,
int length)
|
Methods inherited from class de.intarsys.pdf.cos.COSBasedObject |
---|
changed, cosGetArray, cosGetDict, cosGetDoc, cosGetField, cosGetObject, cosGetStream, cosHasField, cosRemoveField, cosSetField, getAttribute, getFieldBoolean, getFieldDate, getFieldFixed, getFieldFixedArray, getFieldInt, getFieldMLString, getFieldString, invalidateCaches, removeAttribute, setAttribute, setFieldBoolean, setFieldFixed, setFieldInt, setFieldMLString, setFieldName, setFieldObject, setFieldString, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final CMap.MetaClass META
Method Detail |
---|
public static int toInt(byte[] bytes)
public static int toInt(byte[] bytes, int offset, int length)
public abstract char[] getChars(int codepoint)
codepoint
- The codepoint
public abstract int getDecoded(int codepoint)
codepoint
- The codepoint
public abstract int getEncoded(int character)
character
- The character to look up.
public abstract int getNextDecoded(InputStream is) throws IOException
is
- The input stream with encoded data.
IOException
public abstract int getNextEncoded(InputStream is) throws IOException
is
- The input stream with encoded data.
IOException
public abstract void putNextDecoded(OutputStream os, int character) throws IOException
os
- The stream to write the bytes.character
- The character to be encoded.
IOException
public abstract void putNextEncoded(OutputStream os, int codepoint) throws IOException
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 |