|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.foray.ps.encode.CharSetParser
public class CharSetParser
A GlyphListParser instance parses a glyph list, arranging its data for efficient use during processing.
| Constructor Summary | |
|---|---|
CharSetParser(InputStream input)
Create a new CharSetParser instance. |
|
| Method Summary | |
|---|---|
char[] |
getCharacterSet()
Returns the parsed Unicode code points in this character set. |
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 array that has 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 CharSetParser(InputStream input)
input - The reader encapsulating the file to be read.| 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 char[] getCharacterSet()
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 | |||||||||