|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgenopt.io.Token
public class Token
String tokenizer for file input.
This project was carried out at:
and supported byGenOpt Copyright (c) 1998-2011, The Regents of the University of California, through Lawrence Berkeley National Laboratory (subject to receipt of any required approvals from the U.S. Dept. of Energy). All rights reserved.
| Field Summary | |
|---|---|
static int |
ALL
constant to indicate that all values must be found |
private static java.lang.String |
LS
|
protected static int |
MAXERROR
maximal number of error in InputFormatException before search will be stopped |
static int |
PART
constant to indicate that not all values must be found |
protected static char |
QUOTECHAR
quote character |
| Constructor Summary | |
|---|---|
Token()
|
|
| Method Summary | |
|---|---|
private static java.lang.Double |
_getDoubleValue(java.io.StreamTokenizer st,
char firstDelimiter,
char secondDelimiter,
java.lang.String fn)
gets a single Double value from the current position in the stream. |
private static java.lang.Integer |
_getIntegerValue(java.io.StreamTokenizer st,
char firstDelimiter,
char secondDelimiter,
java.lang.String fn)
gets a single Integer value from the current position in the stream. |
private static java.lang.String |
_getStringValue(java.io.StreamTokenizer st,
char firstDelimiter,
char secondDelimiter,
java.lang.String fn)
gets a single String from the current position in the stream. |
private static void |
_getValue(java.io.StreamTokenizer st,
char firstDelimiter,
char secondDelimiter,
java.lang.String[] sk,
java.lang.Object[] sv,
InputFormatException e,
java.lang.String type,
java.lang.String fn,
int flag)
gets various keyword values from the current position in the stream. |
private static java.lang.Object |
_getValue(java.io.StreamTokenizer st,
char firstDelimiter,
char secondDelimiter,
java.lang.String type,
java.lang.String fn)
gets a single Object from the current position in the stream. |
static void |
checkAdmissableValue(java.io.StreamTokenizer st,
InputFormatException e,
java.lang.String variableName,
java.lang.String receivedValue,
java.lang.String admissibleValue,
java.lang.String fileName)
writes an error message into the InputFormatException if a variable was not set |
static void |
checkAdmissableValue(java.io.StreamTokenizer st,
InputFormatException e,
java.lang.String variableName,
java.lang.String keyWord,
java.lang.String receivedValue,
java.lang.String admissibleValue,
java.lang.String fileName)
writes an error message into the InputFormatException if a variable was not set |
static void |
checkVariableSetting(java.io.StreamTokenizer st,
InputFormatException e,
java.lang.String[] variableName,
java.lang.String[] variableValue,
java.lang.String fileName)
checks if all values of val are set. |
static void |
checkVariableSetting(java.io.StreamTokenizer st,
InputFormatException e,
java.lang.String variableName,
java.lang.String variableValue,
java.lang.String fileName)
checks if the value of val is set. |
static void |
checkVariableSetting(java.io.StreamTokenizer st,
InputFormatException e,
java.lang.String variableName,
java.lang.String keyWord,
java.lang.String variableValue,
java.lang.String fileName)
checks if the value of val is set. |
static void |
checkVariableSettingEmpty(java.io.StreamTokenizer st,
InputFormatException e,
java.lang.String variableName,
java.lang.String variableValue,
java.lang.String fileName)
checks if the value of val is empty. |
static void |
checkVariableSettingEmpty(java.io.StreamTokenizer st,
InputFormatException e,
java.lang.String variableName,
java.lang.String keyWord,
java.lang.String variableValue,
java.lang.String fileName)
checks if the value of val is empty. |
static void |
getBooleanValue(java.io.StreamTokenizer st,
char firstDelimiter,
char secondDelimiter,
java.lang.String[] sk,
java.lang.Boolean[] sv,
InputFormatException e,
java.lang.String fn,
int flag)
gets various keyword values from the current position in the stream. |
static boolean |
getBooleanValue(java.io.StreamTokenizer st,
char firstDelimiter,
char secondDelimiter,
java.lang.String keyWord,
InputFormatException e,
java.lang.String fn)
gets a single keyword value from the current position in the stream. |
static void |
getDoubleValue(java.io.StreamTokenizer st,
char firstDelimiter,
char secondDelimiter,
java.lang.String[] sk,
java.lang.Double[] sv,
InputFormatException e,
java.lang.String fn,
int flag)
gets various keyword values from the current position in the stream. |
static double |
getDoubleValue(java.io.StreamTokenizer st,
char firstDelimiter,
char secondDelimiter,
java.lang.String keyWord,
InputFormatException e,
java.lang.String fn)
gets a single keyword value from the current position in the stream. |
static void |
getIntegerValue(java.io.StreamTokenizer st,
char firstDelimiter,
char secondDelimiter,
java.lang.String[] sk,
java.lang.Integer[] sv,
InputFormatException e,
java.lang.String fn,
int flag)
gets various keyword values from the current position in the stream. |
static int |
getIntegerValue(java.io.StreamTokenizer st,
char firstDelimiter,
char secondDelimiter,
java.lang.String keyWord,
InputFormatException e,
java.lang.String fn)
gets a single keyword value from the current position in the stream. |
static void |
getSectionStart(java.io.StreamTokenizer st,
java.lang.String keyWord,
InputFormatException e,
java.lang.String fn)
gets the start of a section from the current position in the stream. |
static void |
getStringValue(java.io.StreamTokenizer st,
char firstDelimiter,
char secondDelimiter,
java.lang.String[] sk,
java.lang.String[] sv,
InputFormatException e,
java.lang.String fn,
int flag)
gets various keyword values from the current position in the stream. |
static java.lang.String |
getStringValue(java.io.StreamTokenizer st,
char firstDelimiter,
char secondDelimiter,
java.lang.String keyWord,
InputFormatException e,
java.lang.String fn)
gets a single keyword value from the current position in the stream. |
static boolean |
isEndOfStream(java.io.StreamTokenizer st,
InputFormatException e,
java.lang.String fn)
checks whether we are at the end of the Stream |
static boolean |
isNextToken(java.io.StreamTokenizer st,
java.lang.String keyWord)
checks whether the next Token is equal to the passed String. |
private static void |
moveToEOL(java.io.StreamTokenizer st)
moves the pointer in the StreamTokenizer beyond the next end-of-line |
static void |
moveToSectionEnd(java.io.StreamTokenizer st,
InputFormatException e,
java.lang.String fn)
moves the pointer in the StreamTokenizer beyond the next '}' sign |
static void |
setError(java.io.StreamTokenizer st,
InputFormatException e,
java.lang.String errorMessage,
java.lang.String fileName)
sets a specified error message into the InputFormatException with the current line number and file name |
static void |
setErrorWrongToken(java.io.StreamTokenizer st,
java.lang.String expectedString,
InputFormatException e,
java.lang.String fn)
gets a single Object from the current position in the stream. |
private static void |
setWordChars(java.io.StreamTokenizer st)
|
static void |
skipJavaComments(java.io.StreamTokenizer st)
skips the pointer of the StreamTokenizer beyond the next /*.. |
static void |
skipSlashSlashComments(java.io.StreamTokenizer st)
skips the pointer of the StreamTokenizer beyond the next //.. |
static void |
skipSlashStarComments(java.io.StreamTokenizer st)
skips the pointer of the StreamTokenizer beyond the next /*.. |
static void |
spoolTo(java.io.StreamTokenizer st,
java.lang.String keyWord,
InputFormatException e,
java.lang.String fn)
spools the pointer in the StreamTokenizer in front of a String. |
private static java.lang.String |
stringNotFound(java.io.StreamTokenizer st,
java.lang.String fileName)
returns an error message if a String was not found |
static void |
variableNotEmpty(java.io.StreamTokenizer st,
InputFormatException e,
java.lang.String variableName,
java.lang.String fileName)
writes an error message into the InputFormatException if a variable was not empty |
static void |
variableNotEmpty(java.io.StreamTokenizer st,
InputFormatException e,
java.lang.String variableName,
java.lang.String keyWord,
java.lang.String fileName)
writes an error message into the InputFormatException if a variable was not empty |
static void |
variableNotSet(java.io.StreamTokenizer st,
InputFormatException e,
java.lang.String variableName,
java.lang.String fileName)
writes an error message into the InputFormatException if a variable was not set |
static void |
variableNotSet(java.io.StreamTokenizer st,
InputFormatException e,
java.lang.String variableName,
java.lang.String keyWord,
java.lang.String fileName)
writes an error message into the InputFormatException if a variable was not set |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int ALL
public static final int PART
protected static final char QUOTECHAR
protected static final int MAXERROR
private static final java.lang.String LS
| Constructor Detail |
|---|
public Token()
| Method Detail |
|---|
public static boolean isNextToken(java.io.StreamTokenizer st,
java.lang.String keyWord)
throws java.io.IOException
st - Reference to StreamTokenizerkeyWord - the keyword that has to be searched for
true if the next Token equals the value of keyWord,
false otherwise
java.io.IOException
public static void setErrorWrongToken(java.io.StreamTokenizer st,
java.lang.String expectedString,
InputFormatException e,
java.lang.String fn)
st - Reference to StreamTokenizerexpectedString - String representation of Token that has
been expected but not receivede - reference to InputFormatException. Error message is written into
this Objectfn - name of file (for error report only) or null pointer
private static java.lang.Object _getValue(java.io.StreamTokenizer st,
char firstDelimiter,
char secondDelimiter,
java.lang.String type,
java.lang.String fn)
throws java.io.IOException,
InputFormatException
st - Reference to StreamTokenizerfirstDelimiter - first delimiter of the searched objectsecondDelimiter - second delimiter of the searched objecttype - Type specification of the object (either String,
Double or Integerfn - name of file (for error report only) or null pointer
firstDelimiter and
secondDelimiter
java.io.IOException
InputFormatException - if the input is mal formatted
public static int getIntegerValue(java.io.StreamTokenizer st,
char firstDelimiter,
char secondDelimiter,
java.lang.String keyWord,
InputFormatException e,
java.lang.String fn)
throws java.io.IOException
firstDelimiter and
secondDelimiter
st - Reference to StreamTokenizerfirstDelimiter - first delimiter of the searched objectsecondDelimiter - second delimiter of the searched objectkeyWord - the keyword that has to be searched fore - reference to InputFormatException. Error messages are written into
this Objectfn - name of file (for error report only) or null pointer
firstDelimiter and
secondDelimiter
java.io.IOException
public static double getDoubleValue(java.io.StreamTokenizer st,
char firstDelimiter,
char secondDelimiter,
java.lang.String keyWord,
InputFormatException e,
java.lang.String fn)
throws java.io.IOException
firstDelimiter and
secondDelimiter
st - Reference to StreamTokenizerfirstDelimiter - first delimiter of the searched objectsecondDelimiter - second delimiter of the searched objectkeyWord - the keyword that has to be searched fore - reference to InputFormatException. Error messages are written into
this Objectfn - name of file (for error report only) or null pointer
firstDelimiter and
secondDelimiter
java.io.IOException
public static boolean getBooleanValue(java.io.StreamTokenizer st,
char firstDelimiter,
char secondDelimiter,
java.lang.String keyWord,
InputFormatException e,
java.lang.String fn)
throws java.io.IOException
firstDelimiter and
secondDelimiter
st - Reference to StreamTokenizerfirstDelimiter - first delimiter of the searched objectsecondDelimiter - second delimiter of the searched objectkeyWord - the keyword that has to be searched fore - reference to InputFormatException. Error messages are written into
this Objectfn - name of file (for error report only) or null pointer
firstDelimiter and
secondDelimiter
java.io.IOException
public static java.lang.String getStringValue(java.io.StreamTokenizer st,
char firstDelimiter,
char secondDelimiter,
java.lang.String keyWord,
InputFormatException e,
java.lang.String fn)
throws java.io.IOException
firstDelimiter and
secondDelimiter
st - Reference to StreamTokenizerfirstDelimiter - first delimiter of the searched objectsecondDelimiter - second delimiter of the searched objectkeyWord - the keyword that has to be searched fore - reference to InputFormatException. Error messages are written into
this Objectfn - name of file (for error report only) or null pointer
firstDelimiter and
secondDelimiter
java.io.IOException
private static java.lang.String _getStringValue(java.io.StreamTokenizer st,
char firstDelimiter,
char secondDelimiter,
java.lang.String fn)
throws java.io.IOException,
InputFormatException
firstDelimiter and
secondDelimiter
st - Reference to StreamTokenizerfirstDelimiter - first delimiter of the searched objectsecondDelimiter - second delimiter of the searched objectfn - name of file (for error report only) or null pointer
firstDelimiter and
secondDelimiter
java.io.IOException
InputFormatException - if the input is mal formatted
public static void spoolTo(java.io.StreamTokenizer st,
java.lang.String keyWord,
InputFormatException e,
java.lang.String fn)
throws java.io.IOException
keyWord is read
or until end-of-file occurs.keyWord.keyWord is not found, an error message is written into
the InputFormatException
st - Reference to StreamTokenizerkeyWord - the keyword to be founde - reference to InputFormatException. Error messages are written into
this Objectfn - name of file (for error report only) or null pointer
java.io.IOException
public static void getSectionStart(java.io.StreamTokenizer st,
java.lang.String keyWord,
InputFormatException e,
java.lang.String fn)
throws java.io.IOException
st - Reference to StreamTokenizerkeyWord - the keyword of the sectione - reference to InputFormatException. Error messages are written into
this Objectfn - name of file (for error report only) or null pointer
java.io.IOException
public static void getDoubleValue(java.io.StreamTokenizer st,
char firstDelimiter,
char secondDelimiter,
java.lang.String[] sk,
java.lang.Double[] sv,
InputFormatException e,
java.lang.String fn,
int flag)
throws java.io.IOException
firstDelimiter and
secondDelimiter
st - Reference to StreamTokenizerfirstDelimiter - first delimiter of the searched objectsecondDelimiter - second delimiter of the searched objectsk - array with all keywords.sv - array where all found values of the keyword will be written in
(sk and sv must have the same length)e - reference to InputFormatException. Error messages are written into
this Objectfn - name of file (for error report only) or null pointerflag - flag whether necessarily all values must be set or not.java.io.IOException
public static void getBooleanValue(java.io.StreamTokenizer st,
char firstDelimiter,
char secondDelimiter,
java.lang.String[] sk,
java.lang.Boolean[] sv,
InputFormatException e,
java.lang.String fn,
int flag)
throws java.io.IOException
firstDelimiter and
secondDelimiter
st - Reference to StreamTokenizerfirstDelimiter - first delimiter of the searched objectsecondDelimiter - second delimiter of the searched objectsk - array with all keywords.sv - array where all found values of the keyword will be written in
(sk and sv must have the same length)e - reference to InputFormatException. Error messages are written into
this Objectfn - name of file (for error report only) or null pointerflag - flag whether necessarily all values must be set or not.java.io.IOException
public static void getIntegerValue(java.io.StreamTokenizer st,
char firstDelimiter,
char secondDelimiter,
java.lang.String[] sk,
java.lang.Integer[] sv,
InputFormatException e,
java.lang.String fn,
int flag)
throws java.io.IOException
firstDelimiter and
secondDelimiter
st - Reference to StreamTokenizerfirstDelimiter - first delimiter of the searched objectsecondDelimiter - second delimiter of the searched objectsk - array with all keywords.sv - array where all found values of the keyword will be written in
(sk and sv must have the same length)e - reference to InputFormatException. Error messages are written into
this Objectfn - name of file (for error report only) or null pointerflag - flag whether necessarily all values must be set or not.java.io.IOException
public static void getStringValue(java.io.StreamTokenizer st,
char firstDelimiter,
char secondDelimiter,
java.lang.String[] sk,
java.lang.String[] sv,
InputFormatException e,
java.lang.String fn,
int flag)
throws java.io.IOException
firstDelimiter and
secondDelimiter
st - Reference to StreamTokenizerfirstDelimiter - first delimiter of the searched objectsecondDelimiter - second delimiter of the searched objectsk - String array with all keywords.sv - String array where all found values of the keyword will be written in
(sk and sv must have the same length)e - reference to InputFormatException. Error messages are written into
this Objectfn - name of file (for error report only) or null pointerflag - flag whether necessarily all values must be set or not.java.io.IOException
public static void moveToSectionEnd(java.io.StreamTokenizer st,
InputFormatException e,
java.lang.String fn)
throws java.io.IOException
'}' sign
st - Reference to StreamTokenizere - reference to InputFormatException. Error messages are written into
this Objectfn - name of file (for error report only) or null pointer
java.io.IOException
private static void moveToEOL(java.io.StreamTokenizer st)
throws java.io.IOException
end-of-line
st - Reference to StreamTokenizer
java.io.IOExceptionprivate static void setWordChars(java.io.StreamTokenizer st)
public static void skipSlashStarComments(java.io.StreamTokenizer st)
throws java.io.IOException
/*..*'/
comment section if there is any.
st - Reference to StreamTokenizer
java.io.IOException
public static void skipJavaComments(java.io.StreamTokenizer st)
throws java.io.IOException
/*..*'/ or
//.. comment section if there is any.
st - Reference to StreamTokenizer
java.io.IOException
public static void skipSlashSlashComments(java.io.StreamTokenizer st)
throws java.io.IOException
//..//
comment section if there is any.
st - Reference to StreamTokenizer
java.io.IOException
public static void checkVariableSetting(java.io.StreamTokenizer st,
InputFormatException e,
java.lang.String[] variableName,
java.lang.String[] variableValue,
java.lang.String fileName)
val are set.
For each value that is not set, an error message is written to
the InputFormatException
st - Reference to StreamTokenizere - reference to InputFormatException. Error messages are written into
this ObjectvariableName - names of the variable (for error report only)variableValue - values of the variables corresponding to 'variableName'fileName - name of file (for error report only) or null pointer
public static void checkVariableSetting(java.io.StreamTokenizer st,
InputFormatException e,
java.lang.String variableName,
java.lang.String variableValue,
java.lang.String fileName)
val is set.
If the value is not set, an error message is written to
the InputFormatException
st - Reference to StreamTokenizere - reference to InputFormatException. Error messages are written into
this ObjectvariableName - name of the variable (for error report only)variableValue - value of the variables corresponding to 'variableName'fileName - name of file (for error report only) or null pointer
public static void checkVariableSetting(java.io.StreamTokenizer st,
InputFormatException e,
java.lang.String variableName,
java.lang.String keyWord,
java.lang.String variableValue,
java.lang.String fileName)
val is set.
If the value is not set, an error message is written to
the InputFormatException
st - Reference to StreamTokenizere - reference to InputFormatException. Error messages are written into
this ObjectvariableName - name of the variable (for error report only)keyWord - keyword that is being tested (for error report only)variableValue - value of the variables corresponding to 'variableName'fileName - name of file (for error report only) or null pointer
public static void checkVariableSettingEmpty(java.io.StreamTokenizer st,
InputFormatException e,
java.lang.String variableName,
java.lang.String variableValue,
java.lang.String fileName)
val is empty.
If the value is not empty, an error message is written to
the InputFormatException
st - Reference to StreamTokenizere - reference to InputFormatException. Error messages are written into
this ObjectvariableName - name of the variable (for error report only)variableValue - value of the variables corresponding to 'variableName'fileName - name of file (for error report only) or null pointer
public static void checkVariableSettingEmpty(java.io.StreamTokenizer st,
InputFormatException e,
java.lang.String variableName,
java.lang.String keyWord,
java.lang.String variableValue,
java.lang.String fileName)
val is empty.
If the value is not empty, an error message is written to
the InputFormatException
st - Reference to StreamTokenizere - reference to InputFormatException. Error messages are written into
this ObjectvariableName - name of the variable (for error report only)keyWord - keyword that is being tested (for error report only)variableValue - value of the variables corresponding to 'variableName'fileName - name of file (for error report only) or null pointer
public static void setError(java.io.StreamTokenizer st,
InputFormatException e,
java.lang.String errorMessage,
java.lang.String fileName)
st - Reference to StreamTokenizere - reference to InputFormatException. Error messages are written into
this ObjecterrorMessage - error message to be written in the expection objectfileName - name of file (for error report only) or null pointer
public static void variableNotSet(java.io.StreamTokenizer st,
InputFormatException e,
java.lang.String variableName,
java.lang.String fileName)
st - Reference to StreamTokenizere - reference to InputFormatException. Error messages are written into
this ObjectvariableName - name of the variable that was not found (for error report only)fileName - name of file (for error report only) or null pointer
public static void variableNotSet(java.io.StreamTokenizer st,
InputFormatException e,
java.lang.String variableName,
java.lang.String keyWord,
java.lang.String fileName)
st - Reference to StreamTokenizere - reference to InputFormatException. Error messages are written into
this ObjectvariableName - name of the variable that was not found (for error report only)keyWord - keyword that is being tested (for error report only)fileName - name of file (for error report only) or null pointer
public static void variableNotEmpty(java.io.StreamTokenizer st,
InputFormatException e,
java.lang.String variableName,
java.lang.String fileName)
st - Reference to StreamTokenizere - reference to InputFormatException. Error messages are written into
this ObjectvariableName - name of the variable that was not empty (for error report only)fileName - name of file (for error report only) or null pointer
public static void variableNotEmpty(java.io.StreamTokenizer st,
InputFormatException e,
java.lang.String variableName,
java.lang.String keyWord,
java.lang.String fileName)
st - Reference to StreamTokenizere - reference to InputFormatException. Error messages are written into
this ObjectvariableName - name of the variable that was not empty (for error report only)keyWord - keyword that is being tested (for error report only)fileName - name of file (for error report only) or null pointer
public static void checkAdmissableValue(java.io.StreamTokenizer st,
InputFormatException e,
java.lang.String variableName,
java.lang.String receivedValue,
java.lang.String admissibleValue,
java.lang.String fileName)
st - Reference to StreamTokenizere - reference to InputFormatException. Error messages are written into
this ObjectvariableName - name of the variable (for error report only)receivedValue - received valueadmissibleValue - admissible valuefileName - name of file (for error report only) or null pointer
public static void checkAdmissableValue(java.io.StreamTokenizer st,
InputFormatException e,
java.lang.String variableName,
java.lang.String keyWord,
java.lang.String receivedValue,
java.lang.String admissibleValue,
java.lang.String fileName)
st - Reference to StreamTokenizere - reference to InputFormatException. Error messages are written into
this ObjectvariableName - name of the variable (for error report only)keyWord - keyword that is being tested (for error report only)receivedValue - received valueadmissibleValue - admissible valuefileName - name of file (for error report only) or null pointer
private static java.lang.String stringNotFound(java.io.StreamTokenizer st,
java.lang.String fileName)
st - Reference to StreamTokenizerfileName - name of file (for error report only) or null pointer
java.io.IOException
private static void _getValue(java.io.StreamTokenizer st,
char firstDelimiter,
char secondDelimiter,
java.lang.String[] sk,
java.lang.Object[] sv,
InputFormatException e,
java.lang.String type,
java.lang.String fn,
int flag)
throws java.io.IOException
firstDelimiter and
secondDelimiter
st - Reference to StreamTokenizerfirstDelimiter - first delimiter of the searched objectsecondDelimiter - second delimiter of the searched objectsk - String array with all keywords.sv - Object array where all found values of the keyword will be written in
(sk and sv must have the same length)e - reference to InputFormatException. Error messages are written into
this Objecttype - Type specification of the object (either String,
boolean, Double or Integerfn - name of file (for error report only) or null pointerflag - flag whether necessarily all values must be set or not.Token.ALL,
therwise pass Token.PART)
java.io.IOException
private static java.lang.Double _getDoubleValue(java.io.StreamTokenizer st,
char firstDelimiter,
char secondDelimiter,
java.lang.String fn)
throws java.io.IOException,
InputFormatException
firstDelimiter and
secondDelimiter
st - Reference to StreamTokenizerfirstDelimiter - first delimiter of the searched objectsecondDelimiter - second delimiter of the searched objectfn - name of file (for error report only) or null pointer
firstDelimiter and
secondDelimiter
java.io.IOException
InputFormatException - if the input is mal formatted
private static java.lang.Integer _getIntegerValue(java.io.StreamTokenizer st,
char firstDelimiter,
char secondDelimiter,
java.lang.String fn)
throws java.io.IOException,
InputFormatException
firstDelimiter and
secondDelimiter
st - Reference to StreamTokenizerfirstDelimiter - first delimiter of the searched objectsecondDelimiter - second delimiter of the searched objectfn - name of file (for error report only) or null pointer
firstDelimiter and
secondDelimiter
java.io.IOException
InputFormatException - if the input is mal formatted
public static boolean isEndOfStream(java.io.StreamTokenizer st,
InputFormatException e,
java.lang.String fn)
st - Reference to StreamTokenizere - reference to InputFormatException. Error message is written into
this Objectfn - name of file (for error report only) or null pointer
true if end of Stream is reached, false
otherwise
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||