Method Summary |
|
abstract protected COSIndirectObject | createObjectReference() |
public IPDFParserExceptionHandler | getExceptionHandler() |
protected COSObjectKey | getObjectKey() |
protected ISystemSecurityHandler | getSecurityHandler() |
public void | handleError(COSLoadError error) Handle an error if an exceptionHandler is set. |
public void | handleWarning(COSLoadWarning warning) Handle a warning if an exceptionHandler is set. |
final public static boolean | isDelimiter(int i) evaluate to true if i is a PDF Delimiter char. |
final public static boolean | isDigit(int i) evaluate to true if i is a valid digit. |
final public static boolean | isEOL(int i) evaluate to true if i is a valid line terminator. |
final public static boolean | isNumberStart(int i) evaluate to true if i is a valid first char for a number token. |
final public static boolean | isOctalDigit(int i) evaluate to true if i is a valid octal digit. |
final public static boolean | isTokenStart(int i) evaluate to true if i is a valid string token start. |
final public static boolean | isWhitespace(int i) evaluate to true if i is a valid whitespace. |
protected COSObject | lookaheadPop() in order to read references we need a two object lookahead for the
integer numbers this method pops the first object from the fifo
structure. |
protected void | lookaheadPush(COSObject obj) in order to read references we need a two object lookahead for the
integer numbers this method pushes an object in the fifo structure. |
protected void | parseComment(IRandomAccess input) comment see PDF Reference v1.4, chapter 3.1.2 comments Comment ::= "%"
anyChar EOL read until end of line. |
public Object | parseElement(IRandomAccess input) parse the basic elements from the current stream position. |
public STDocType | parseHeader(IRandomAccess input) pdf header see PDF Reference v1.4, chapter 3.4.1 Header COSHEader ::=
"%PDF-" version. |
protected COSDocumentElement | parseObject(IRandomAccess input) Parse a valid COS object for use in document context from the current
stream position. |
protected COSObject | parseObjectDictionary(IRandomAccess input) |
protected COSObject | parseOnObjectArray(IRandomAccess input) parse a COS array from the current stream position. |
protected COSObject | parseOnObjectDictionary(IRandomAccess input) parse a COS dictionary from the current stream position. |
protected COSObject | parseOnObjectHexString(IRandomAccess input, int next) parse a COS string encoded in hex from the current stream position. |
protected COSObject | parseOnObjectName(IRandomAccess input) parse a COS name from the current stream position. |
protected COSObject | parseOnObjectNumber(IRandomAccess input, int next) parse a COS number from the current stream position. |
protected COSObject | parseOnObjectStream(IRandomAccess input, COSDictionary dict) parse a COS stream from the current stream position. |
protected COSObject | parseOnObjectStreamOrDictionary(IRandomAccess input) parse a COS stream or dictionary from the current stream position. |
protected COSObject | parseOnObjectStreamOrDictionaryOrHexString(IRandomAccess input) parse a COS stream or dictionary or hex string from the current stream
position. |
protected COSObject | parseOnObjectString(IRandomAccess input) parse a COS string from the current stream position. |
protected boolean | readEOL(IRandomAccess input) Consume whitespace. |
protected int | readEscape(IRandomAccess input) read an esacped char from the stream. |
public int | readInteger(IRandomAccess input, boolean consumeSpaceAfter) reads the next integer on input. |
protected int | readOctalChar(IRandomAccess input) read an octal character from the stream. |
public void | readSpaces(IRandomAccess input) read all characters until EOF or non space char appears. |
protected byte[] | readStream(IRandomAccess input) Read all characters up to "endstream" and assume them belonging to the
stream. |
public byte[] | readToken(IRandomAccess input) read a single token. |
public byte[] | readToken(IRandomAccess input, List messages) |
protected byte[] | readTokenElement(IRandomAccess input, int next) |
protected byte[] | readTokenElement(IRandomAccess input, int next, List messages) |
public void | setExceptionHandler(IPDFParserExceptionHandler exceptionHandler) |
protected void | setObjectKey(COSObjectKey objectKey) |
protected void | setSecurityHandler(ISystemSecurityHandler securityHandler) |
public static COSObject | toCOSObject(byte[] data) parse the given byte array to a valid COSObject. |