public class AFMParser extends Object
See the "Adobe Font Metrics File Format Specification"
| Modifier and Type | Field and Description |
|---|---|
static char |
CHAR_BS |
static char |
CHAR_CR |
static char |
CHAR_FF |
static char |
CHAR_HT |
static char |
CHAR_LF |
| Constructor and Description |
|---|
AFMParser(AFM afm)
AFMParser constructor comment.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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
public AFMParser(AFM afm)
public static final boolean isEOL(int i)
i - i a byte representationpublic static final boolean isWhitespace(int i)
i - i a byte representationpublic 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.IOExceptionpublic byte[] readLine(de.intarsys.tools.randomaccess.IRandomAccess input)
throws IOException
IOExceptionpublic void readSpaces(de.intarsys.tools.randomaccess.IRandomAccess input)
throws IOException
IOExceptionpublic byte[] readToken(de.intarsys.tools.randomaccess.IRandomAccess input)
throws IOException
IOExceptionCopyright © 2013 intarsys consulting GmbH. All Rights Reserved.