|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.icepdf.core.pobjects.functions.postscript.Lexer
public class Lexer
A state machine used to parse valid type 4 functions tokens in a input stream. As the tokens are parsed found operands are executed to mananipulate the stack.
| Constructor Summary | |
|---|---|
Lexer()
|
|
| Method Summary | |
|---|---|
java.util.Stack |
getStack()
Gets the stack associated with this lexer. |
void |
parse(float[] input)
Parse the input stream associated with this instance. |
void |
setInputStream(java.io.InputStream in)
Type 4 function input stream to pars.e |
protected void |
setReader(java.io.Reader reader)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Lexer()
| Method Detail |
|---|
public void setInputStream(java.io.InputStream in)
in - type 4 function input stream.protected void setReader(java.io.Reader reader)
public void parse(float[] input)
throws java.io.IOException
input - array of 1 or more numbers to be pushed onto the stack before
the type 4 function is executed.
java.io.IOException - if the input stream is null or incomplete.public java.util.Stack getStack()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||