|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fontbox.cff.encoding.CFFEncoding
public abstract class CFFEncoding
This is the superclass for all CFFFont encodings.
Nested Class Summary | |
---|---|
static class |
CFFEncoding.Entry
This class represents a single code/SID mapping of the encoding. |
Constructor Summary | |
---|---|
CFFEncoding()
|
Method Summary | |
---|---|
void |
addEntry(CFFEncoding.Entry entry)
Add a single entry. |
int |
getCode(int sid)
Returns the code corresponding to the given SID. |
List<CFFEncoding.Entry> |
getEntries()
A list of all entries within this encoding. |
int |
getSID(int code)
Returns the SID corresponding to the given code. |
boolean |
isFontSpecific()
Determines if the encoding is font specific or not. |
void |
register(int code,
int sid)
Adds a new code/SID combination to the encoding. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CFFEncoding()
Method Detail |
---|
public boolean isFontSpecific()
public int getCode(int sid)
sid
- the given SID
public int getSID(int code)
code
- the given code
public void register(int code, int sid)
code
- the given codesid
- the given SIDpublic void addEntry(CFFEncoding.Entry entry)
entry
- the entry to be addedpublic List<CFFEncoding.Entry> getEntries()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |