|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.foray.ps.encode.GlyphListParser
public class GlyphListParser
A GlyphListParser instance parses a glyph list, arranging its data for efficient use during processing.
| Constructor Summary | |
|---|---|
GlyphListParser(InputStream input)
Create a new GlyphListParser instance. |
|
| Method Summary | |
|---|---|
char[] |
getCodePoints()
Returns the sorted list of codepoints. |
char[][] |
getCodePointsForGlyphNames()
Returns the array of Unicode codepoints that corresponds to getGlyphNames(). |
short[] |
getGlyphNameIndex()
Returns the array of indexes into getGlyphNames() that corresponds to the Unicode codepoint in
getCodePoints(). |
String[] |
getGlyphNames()
Returns the sorted list of glyph names in this glyph list. |
static void |
main(String[] args)
Main method useful for parsing a glyph list file from the command-line and generating the java code that encapsulates that glyph list. |
void |
parseList()
Parses a glyph list. |
void |
writeAsJavaStatics(OutputStream out)
Writes out the four internal arrays that have been parsed into java source code. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GlyphListParser(InputStream input)
input - The file to be parsed.| Method Detail |
|---|
public void parseList()
throws IOException,
org.axsl.ps.PsException
IOException - For I/O Error.
org.axsl.ps.PsException - For errors parsing the input.
public void writeAsJavaStatics(OutputStream out)
throws IOException
out - The OutputStream to which the data structures should be
written.
IOException - For errors when writing to out.public String[] getGlyphNames()
getCodePointsForGlyphNames().
public char[][] getCodePointsForGlyphNames()
getGlyphNames().
public char[] getCodePoints()
getGlyphNameIndex().
public short[] getGlyphNameIndex()
getGlyphNames() that corresponds to the Unicode codepoint in
getCodePoints().
public static void main(String[] args)
args - Element 0 is the URL of the glyph list to be parsed.
Element 1 is the URL of the file to which the java source code should be
written.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||