public class PdfSimpleObject extends PdfObject
_genNumber, _objNumber
Constructor and Description |
---|
PdfSimpleObject(Token token)
Creates a PdfSimpleObject.
|
PdfSimpleObject(Token token,
int objNumber,
int genNumber)
Creates a PdfSimpleObject.
|
Modifier and Type | Method and Description |
---|---|
double |
getDoubleValue()
Return the
double value of the token. |
int |
getIntValue()
Return the integer value of the token.
|
Vector<Integer> |
getRawBytes()
Return the raw bytes of the token, as a Vector of Integer objects.
|
String |
getStringValue()
Return the string value of the token.
|
Token |
getToken()
Returns the token represented by this object.
|
boolean |
isFalse()
Return
true if the value of the token is the keyword
"false", and false otherwise. |
boolean |
isTrue()
Return
true if the value of the token is the keyword
"true", and false otherwise. |
getGenNumber, getObjNumber, setGenNumber, setObjNumber
public PdfSimpleObject(Token token, int objNumber, int genNumber)
objNumber
- The PDF object numbergenNumber
- The PDF generation numbertoken
- The Token represented by this objectpublic PdfSimpleObject(Token token)
token
- The Token represented by this objectpublic Token getToken()
public String getStringValue()
public Vector<Integer> getRawBytes()
public int getIntValue()
public double getDoubleValue()
double
value of the token. Throws a
ClassCastException if the token is not a Numeric.public boolean isTrue()
true
if the value of the token is the keyword
"true", and false otherwise.public boolean isFalse()
true
if the value of the token is the keyword
"false", and false otherwise.Copyright © 2008–2017 The Open Preservation Foundation. All rights reserved.