|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.fop.fonts.SimpleSingleByteEncoding
public class SimpleSingleByteEncoding
A simple implementation of the OneByteEncoding mostly used for encodings that are constructed on-the-fly.
| Field Summary |
|---|
| Fields inherited from interface org.apache.fop.fonts.SingleByteEncoding |
|---|
NOT_FOUND_CODE_POINT |
| Constructor Summary | |
|---|---|
SimpleSingleByteEncoding(java.lang.String name)
Main constructor. |
|
| Method Summary | |
|---|---|
char |
addCharacter(NamedCharacter ch)
Adds a new character to the encoding. |
NamedCharacter |
getCharacterForIndex(int codePoint)
Returns the named character at a given code point in the encoding. |
java.lang.String[] |
getCharNameMap()
Returns the array of character names for this encoding. |
int |
getFirstChar()
Returns the index of the first defined character. |
int |
getLastChar()
Returns the index of the last defined character. |
java.lang.String |
getName()
Returns the encoding's name. |
int |
getSize()
Returns the number of characters defined by this encoding. |
char[] |
getUnicodeCharMap()
Returns a character array with Unicode scalar values which can be used to map encoding code points to Unicode values. |
boolean |
isFull()
Indicates whether the encoding is full (with 256 code points). |
char |
mapChar(char c)
Maps a Unicode character to a code point in the encoding. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleSingleByteEncoding(java.lang.String name)
name - the encoding's name| Method Detail |
|---|
public java.lang.String getName()
getName in interface SingleByteEncodingpublic char mapChar(char c)
mapChar in interface SingleByteEncodingc - the Unicode character to map
public java.lang.String[] getCharNameMap()
getCharNameMap in interface SingleByteEncodingpublic int getFirstChar()
public int getLastChar()
public int getSize()
public boolean isFull()
public char addCharacter(NamedCharacter ch)
ch - the named character
public NamedCharacter getCharacterForIndex(int codePoint)
codePoint - the code point of the character
public char[] getUnicodeCharMap()
getUnicodeCharMap in interface SingleByteEncodingpublic java.lang.String toString()
toString in class java.lang.Object
|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||