PDFLexer
Overview
PDFLexer is a class in Aspose.Pdf FOSS for Java.
PDF tokenizer: converts a byte stream into a sequence of PDF tokens.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
position | long | Read | Returns the current byte position in the underlying reader. |
Methods
| Signature | Description |
|---|---|
PDFLexer(reader: RandomAccessReader) | Constructs a new PDFLexer reading from the given source. |
nextToken() → Token | Reads and returns the next token from the input, consuming it. |
peekToken() → Token | Returns the next token without consuming it. |
getPosition() → long | Returns the current byte position in the underlying reader. |
clearPeek() | Clears any peeked (buffered) token. |
skipWhitespaceAndComments() | Skips whitespace characters and comments. |