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

NameTypeAccessDescription
positionlongReadReturns the current byte position in the underlying reader.

méthodes

SignatureDescription
PDFLexer(reader: RandomAccessReader)Constructs a new PDFLexer reading from the given source.
nextToken()TokenReads and returns the next token from the input, consuming it.
peekToken()TokenReturns the next token without consuming it.
getPosition()longReturns 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
 Français