PDFLexer
Vue de l’ensemble
‘PDFLexer’ est une classe dans Aspose.PDF FOSS pour Java.
PDF tokenizer : convertit un courant byte en une séquence de tokens PDF.
Cette classe fournit 6 méthodes pour travailler avec les objets PDFLexer dans les programmes Java. Les méthodologies disponibles comprennent: ‘PDFLExer’, ‘clearPeek’, `getPosition’, ‘nextToken’, ‘peekTot’ et ‘skipWhitespaceAndComments’. Tous les membres publics sont accessibles à toute application Java après l’installation de l’ASPOSE.PDF FOSS pour le package Java, propriétés : ‘position’.
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
position | long | Read | Returns the current byte position in the underlying reader. |
méthodes
| 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. |
Voir aussi
- Aspose.PDF pour Java — API d’entreprise