|
intarsys CWT library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.intarsys.cwt.font.afm.AFMParser
public class AFMParser
A simple parser for AFM type definition files.
See the "Adobe Font Metrics File Format Specification"
Field Summary | |
---|---|
static char |
CHAR_BS
|
static char |
CHAR_CR
|
static char |
CHAR_FF
|
static char |
CHAR_HT
|
static char |
CHAR_LF
|
Constructor Summary | |
---|---|
AFMParser(AFM afm)
AFMParser constructor comment. |
Method Summary | |
---|---|
static boolean |
isEOL(int i)
evaluate to true if i is a valid line terminator. |
static boolean |
isWhitespace(int i)
evaluate to true if i is a valid whitespace. |
AFM |
parse(de.intarsys.tools.randomaccess.IRandomAccess random)
Parse a AFM object from the input stream is . |
byte[] |
readLine(de.intarsys.tools.randomaccess.IRandomAccess input)
read a single line. |
void |
readSpaces(de.intarsys.tools.randomaccess.IRandomAccess input)
read all characters until EOF or non space char appears. the first non space char is pushed back so the next char read is the first non space char. |
byte[] |
readToken(de.intarsys.tools.randomaccess.IRandomAccess input)
read a single token. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static char CHAR_BS
public static char CHAR_CR
public static char CHAR_FF
public static char CHAR_HT
public static char CHAR_LF
Constructor Detail |
---|
public AFMParser(AFM afm)
Method Detail |
---|
public static final boolean isEOL(int i)
i
- i a byte representation
public static final boolean isWhitespace(int i)
i
- i a byte representation
public AFM parse(de.intarsys.tools.randomaccess.IRandomAccess random) throws IOException
AFM
object from the input stream is
.
is
- The input stream containing the definition.
AFM
parsed.
IOException
public byte[] readLine(de.intarsys.tools.randomaccess.IRandomAccess input) throws IOException
IOException
public void readSpaces(de.intarsys.tools.randomaccess.IRandomAccess input) throws IOException
IOException
public byte[] readToken(de.intarsys.tools.randomaccess.IRandomAccess input) throws IOException
IOException
|
intarsys CWT library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |