|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectru.zorin.pictfont.Parser
public class Parser
Class Parser
is used for parsing text file with font description.
Constructor Summary | |
---|---|
Parser(java.io.Reader reader)
Creates a new instance of Parser |
Method Summary | |
---|---|
int |
readFields(java.lang.StringBuffer[] fields)
Reads from file next line with set of delimited field |
int |
readPair(java.lang.StringBuffer key,
java.lang.StringBuffer value)
Reads from file next line with pair (key=value) |
static void |
trimQuote(java.lang.StringBuffer buff)
Trims quotes from the string |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Parser(java.io.Reader reader)
Method Detail |
---|
public int readPair(java.lang.StringBuffer key, java.lang.StringBuffer value)
key
- this buffer will be filled with keyvalue
- this buffer will be filled with value
0
- succesful;
-1
- succesful and End Of File was be reached;
-2
- failed.public int readFields(java.lang.StringBuffer[] fields)
fields
- this array of buffer will be filled with corresponded values
0
- succesful;
-1
- succesful and End Of File was be reached;
-2
- failed.public static void trimQuote(java.lang.StringBuffer buff)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |