Class Parser.Tokenizer
- java.lang.Object
-
- org.apache.pdfbox.pdmodel.common.function.type4.Parser.Tokenizer
-
- Enclosing class:
- Parser
private static final class Parser.Tokenizer extends java.lang.ObjectTokenizer for Type 4 functions.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringBuilderbufferprivate static charCRprivate static charEOTprivate static charFFprivate Parser.SyntaxHandlerhandlerprivate intindexprivate java.lang.CharSequenceinputprivate static charLFprivate static charNULprivate static charSPACEprivate Parser.Statestateprivate static charTAB
-
Constructor Summary
Constructors Modifier Constructor Description privateTokenizer(java.lang.CharSequence text, Parser.SyntaxHandler syntaxHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private charcurrentChar()private booleanhasMore()private charnextChar()private Parser.StatenextState()private charpeek()private voidscanComment()private voidscanNewLine()private voidscanToken()private voidscanWhitespace()private voidtokenize()
-
-
-
Field Detail
-
NUL
private static final char NUL
- See Also:
- Constant Field Values
-
EOT
private static final char EOT
- See Also:
- Constant Field Values
-
TAB
private static final char TAB
- See Also:
- Constant Field Values
-
FF
private static final char FF
- See Also:
- Constant Field Values
-
CR
private static final char CR
- See Also:
- Constant Field Values
-
LF
private static final char LF
- See Also:
- Constant Field Values
-
SPACE
private static final char SPACE
- See Also:
- Constant Field Values
-
input
private final java.lang.CharSequence input
-
index
private int index
-
handler
private final Parser.SyntaxHandler handler
-
state
private Parser.State state
-
buffer
private final java.lang.StringBuilder buffer
-
-
Constructor Detail
-
Tokenizer
private Tokenizer(java.lang.CharSequence text, Parser.SyntaxHandler syntaxHandler)
-
-
Method Detail
-
hasMore
private boolean hasMore()
-
currentChar
private char currentChar()
-
nextChar
private char nextChar()
-
peek
private char peek()
-
nextState
private Parser.State nextState()
-
tokenize
private void tokenize()
-
scanNewLine
private void scanNewLine()
-
scanWhitespace
private void scanWhitespace()
-
scanComment
private void scanComment()
-
scanToken
private void scanToken()
-
-