Package org.bytedeco.javacpp.tools
Class Tokenizer
- java.lang.Object
-
- org.bytedeco.javacpp.tools.Tokenizer
-
- All Implemented Interfaces:
Closeable,AutoCloseable
class Tokenizer extends Object implements Closeable
- Author:
- Samuel Audet
-
-
Field Summary
Fields Modifier and Type Field Description (package private) StringBuilderbuffer(package private) Filefile(package private) intlastChar(package private) intlineNumber(package private) StringlineSeparator(package private) Readerreader(package private) Stringtext
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidfilterLines(String[] patterns, boolean skip)TokennextToken()(package private) intreadChar()(package private) Token[]tokenize()
-
-
-
Field Detail
-
file
File file
-
text
String text
-
reader
Reader reader
-
lineSeparator
String lineSeparator
-
lastChar
int lastChar
-
lineNumber
int lineNumber
-
buffer
StringBuilder buffer
-
-
Constructor Detail
-
Tokenizer
Tokenizer(File file) throws IOException
- Throws:
IOException
-
Tokenizer
Tokenizer(File file, String encoding) throws IOException
- Throws:
IOException
-
-
Method Detail
-
filterLines
public void filterLines(String[] patterns, boolean skip) throws IOException
- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
readChar
int readChar() throws IOException- Throws:
IOException
-
nextToken
public Token nextToken() throws IOException
- Throws:
IOException
-
tokenize
Token[] tokenize()
-
-