|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.base.node.io.filetokenizer.FileTokenizer
Tokenizer
instead. Will
be removed in Ver3.0.
@Deprecated public class FileTokenizer
Field Summary | |
---|---|
(package private) static String |
LF_STR
Deprecated. String containing only the LF char. |
static int |
MAX_CHAR
Deprecated. The maximum ASCII code for the first character of patterns (like delimiter, comment, and quote patterns. |
Constructor Summary | |
---|---|
FileTokenizer(Reader source)
Deprecated. Creates a new tokenizer with the default behaviour. |
Method Summary | |
---|---|
void |
closeSourceStream()
Deprecated. Closes the stream the tokenizer reads from. |
String |
getLastQuoteBeginPattern()
Deprecated. Returns the left quote of the last token. |
String |
getLastQuoteEndPattern()
Deprecated. Returns the right quote of the last token. |
int |
getLineNumber()
Deprecated. |
long |
getReadBytes()
Deprecated. Returns the number of bytes returned so far. |
FileTokenizerSettings |
getSettings()
Deprecated. |
boolean |
isWhiteSpace(char c)
Deprecated. |
boolean |
lastTokenWasDelimiter()
Deprecated. |
boolean |
lastTokenWasQuoted()
Deprecated. Call this to distinguish between missing and empty tokens. |
String |
nextToken()
Deprecated. Reads the next token from the stream and returns it as string. |
void |
pushBack()
Deprecated. After a call to this function the token returned with the last call to the nextToken() function will be returned once again with
the next call the the nextToken() function. |
void |
resetToDefault()
Deprecated. Resets the tokenizer to its default behavior, which is: No comments are supported, No quoted strings are supported, No line continuation is supported, and No token delimiter is set (only EOF - i.e. |
void |
setSettings(FileTokenizerSettings ftSettings)
Deprecated. Set new user settings in this tokenizer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MAX_CHAR
static final String LF_STR
Constructor Detail |
---|
public FileTokenizer(Reader source)
source
- A reader the tokens are read from.for what's the default behaviour.
Method Detail |
---|
public void resetToDefault()
public boolean lastTokenWasDelimiter()
public String nextToken() throws FileTokenizerException
null
if no more token can be read.
FileTokenizerException
- if something goes wrong during tokenizing.public boolean isWhiteSpace(char c)
c
- the character to test.
public void pushBack()
nextToken()
function will be returned once again with
the next call the the nextToken()
function. Pushing back a
token does not decrease the line number accordingly.
nextToken()
public boolean lastTokenWasQuoted()
true
if the last token had quotes which were removed
by the tokenizer.public String getLastQuoteBeginPattern()
public String getLastQuoteEndPattern()
public int getLineNumber()
public long getReadBytes()
public void closeSourceStream()
nextToken()
after a call to this token will return
null
(indicating the end of the file).
public void setSettings(FileTokenizerSettings ftSettings)
FileTokenizerSettings
, add all parameters there and pass the
settings object through this method.
ftSettings
- the settings object containing new settings.public FileTokenizerSettings getSettings()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |