|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.icepdf.core.util.Parser
public class Parser
put your documentation comment here
| Field Summary | |
|---|---|
static int |
PARSE_MODE_NORMAL
|
static int |
PARSE_MODE_OBJECT_STREAM
|
| Constructor Summary | |
|---|---|
Parser(java.io.InputStream r)
|
|
Parser(java.io.InputStream r,
int pm)
|
|
Parser(SeekableInput r)
|
|
Parser(SeekableInput r,
int pm)
|
|
| Method Summary | |
|---|---|
PObject |
addPObject(Library library,
Reference objectReference)
Utility Method for getting a PObject from the stack and adding it to the library. |
char |
getCharSurroundedByWhitespace()
|
int |
getIntSurroundedByWhitespace()
|
int |
getLinearTraversalOffset()
|
long |
getLongSurroundedByWhitespace()
|
java.lang.Number |
getNumber(java.lang.StringBuilder value)
|
java.lang.Object |
getNumberOrStringWithMark(int maxLength)
|
java.lang.Object |
getObject(Library library)
Get an object from the pdf input DataInputStream. |
java.lang.Object |
getStreamObject()
Returns the next object found in a content stream. |
java.lang.Object |
getToken()
Utility method used to parse a valid pdf token from an DataIinputStream. |
static boolean |
isWhitespace(char c)
White space characters defined by ' ', '\t', '\r', '\n', '\f' |
java.lang.String |
peek2()
|
boolean |
readLineForInlineImage(java.io.OutputStream out)
|
void |
ungetNumberOrStringWithReset()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int PARSE_MODE_NORMAL
public static final int PARSE_MODE_OBJECT_STREAM
| Constructor Detail |
|---|
public Parser(SeekableInput r)
public Parser(SeekableInput r,
int pm)
public Parser(java.io.InputStream r)
public Parser(java.io.InputStream r,
int pm)
| Method Detail |
|---|
public java.lang.Object getObject(Library library)
throws PDFException
library - all found objects in the pdf document
PDFException - error getting object from library
public java.lang.String peek2()
throws java.io.IOException
java.io.IOException
public boolean readLineForInlineImage(java.io.OutputStream out)
throws java.io.IOException
java.io.IOException
public PObject addPObject(Library library,
Reference objectReference)
library - HashMap of all objects in documentobjectReference - PObjet indirect reference data
public java.lang.Object getStreamObject()
throws java.io.IOException
java.io.IOException - when the end of the InputStream
has been encountered.
public java.lang.Object getToken()
throws java.io.IOException
java.io.IOException - if an I/O error occurs.
public java.lang.Object getNumberOrStringWithMark(int maxLength)
throws java.io.IOException
java.io.IOException
public void ungetNumberOrStringWithReset()
throws java.io.IOException
java.io.IOExceptionpublic int getIntSurroundedByWhitespace()
public java.lang.Number getNumber(java.lang.StringBuilder value)
public long getLongSurroundedByWhitespace()
public int getLinearTraversalOffset()
public char getCharSurroundedByWhitespace()
public static boolean isWhitespace(char c)
c - true if character is white space
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||