Token

Overview

Token is a class in Aspose.PDF FOSS for Java.

A single PDF token with its type, string value, and file position.

This class provides 5 methods for working with Token objects in Java programs. Available methods include: Token, getPosition, getType, getValue, toString. All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package. Properties: position, type, value.

Properties

NameTypeAccessDescription
typeTokenTypeReadReturns the token type.
valueStringReadReturns the textual value of the token.
positionlongReadReturns the byte position in the source where this token starts.

Methods

SignatureDescription
Token(type: TokenType, value: String, position: long)Creates a new token.
getType()TokenTypeReturns the token type.
getValue()StringReturns the textual value of the token.
getPosition()longReturns the byte position in the source where this token starts.
toString()String

See Also

 English