Package com.sun.pdfview
Class PDFParser.Tok
- java.lang.Object
-
- com.sun.pdfview.PDFParser.Tok
-
- Enclosing class:
- PDFParser
class PDFParser.Tok extends java.lang.Object
a token from a PDF Stream
-
-
Field Summary
Fields Modifier and Type Field Description static int
ARYB
begin array [static int
ARYE
end array ]static int
BRCB
begin brace {static int
BRCE
end brace }static int
BRKB
begin bracket <static int
BRKE
end bracket >static int
CMD
keywordstatic int
EOF
end of streamjava.lang.String
name
the string value of a STR, NAME, or CMD tokenstatic int
NAME
name (begins with /)static int
NUM
numberstatic int
STR
String (, readString looks for trailing )int
type
the type of the tokenstatic int
UNK
unknown tokendouble
value
the value of a NUM token
-
Constructor Summary
Constructors Constructor Description Tok()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
a printable representation of the token
-
-
-
Field Detail
-
BRKB
public static final int BRKB
begin bracket <- See Also:
- Constant Field Values
-
BRKE
public static final int BRKE
end bracket >- See Also:
- Constant Field Values
-
ARYB
public static final int ARYB
begin array [- See Also:
- Constant Field Values
-
ARYE
public static final int ARYE
end array ]- See Also:
- Constant Field Values
-
STR
public static final int STR
String (, readString looks for trailing )- See Also:
- Constant Field Values
-
BRCB
public static final int BRCB
begin brace {- See Also:
- Constant Field Values
-
BRCE
public static final int BRCE
end brace }- See Also:
- Constant Field Values
-
NUM
public static final int NUM
number- See Also:
- Constant Field Values
-
CMD
public static final int CMD
keyword- See Also:
- Constant Field Values
-
NAME
public static final int NAME
name (begins with /)- See Also:
- Constant Field Values
-
UNK
public static final int UNK
unknown token- See Also:
- Constant Field Values
-
EOF
public static final int EOF
end of stream- See Also:
- Constant Field Values
-
name
public java.lang.String name
the string value of a STR, NAME, or CMD token
-
value
public double value
the value of a NUM token
-
type
public int type
the type of the token
-
-