|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.phoenix_int.aserver.util.scriptwrapper.api.AbstractFile
com.phoenix_int.aserver.util.scriptwrapper.api.PHXRowFieldFile
public class PHXRowFieldFile
Class implements the parsing capabilities of the RowField type files from the fileWrapper facility. Typical use would be to write a function which creates an instance of this class and implements the parsing using the transferVar() function. Then, a mode can be passed in which specifies whether the function should read the template file, generate an input file, or parse an output file.
You will want to read the documentation on the fileWrapper utility for more specifics on how exactly the file parsing and options work.
Example usage from a java scriptwrapper (Comments show fileWrapper equivalents):
//RowFieldInputFile freqIN
void rowFieldFreqIN(int mode)
throws Exception
{
RowFieldFile file = new RowFieldFile(super.wrapper, mode)
//templateFile: freq.txt.template
file.setTemplateFile("freq.txt.template");
//fileToGenerate: freq.txt
file.setFileToGenerateOrParse("freq.txt");
//variable: W1 double 1 2
file.transferVar(super.W1, 1, 2);
//variable: W2 double 2 2
file.transferVar(super.W2, 2, 2);
//variable: u1 double 3 2
file.transferVar(super.u1, 3, 2);
//variable: u2 double 4 2
file.transferVar(super.u2, 4, 2);
//Actually generate a file if we are told to
if ( mode == RowFieldFile.GENERATE )
file.generate();
}
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.phoenix_int.aserver.util.scriptwrapper.api.ParseableFile |
|---|
ParseableFile.Mode |
| Field Summary | |
|---|---|
static int |
GENERATE
Deprecated. in favor of ParseableFile.Mode.GENERATE |
static int |
PARSE
Deprecated. in favor of ParseableFile.Mode.PARSE |
static int |
READ_TEMPLATE
Deprecated. in favor of ParseableFile.Mode.READ_TEMPLATE |
| Fields inherited from class com.phoenix_int.aserver.util.scriptwrapper.api.AbstractFile |
|---|
encoding, fileName, mode, parser, templateFileName, wrapper |
| Constructor Summary | |
|---|---|
PHXRowFieldFile(PHXScriptWrapperObject wrapper)
Defaults to ParseableFile.Mode.GENERATE |
|
PHXRowFieldFile(PHXScriptWrapperObject wrapper,
int mode)
Deprecated. in favor of PHXRowFieldFile(PHXScriptWrapperObject, ParseableFile.Mode) |
|
PHXRowFieldFile(PHXScriptWrapperObject wrapper,
ParseableFile.Mode mode)
|
|
PHXRowFieldFile(java.lang.String baseDirectory,
int mode)
Legacy (pre-QW) constructor. |
|
| Method Summary | |
|---|---|
void |
clearMarks()
Removes effects of any previous markAsBeginning() or markAsEnd() calls |
void |
defineBookmark(java.lang.String name,
java.lang.String parent,
java.lang.String start)
|
void |
defineSection(java.lang.String name,
java.lang.String start,
java.lang.String end,
java.lang.String delimiters)
|
void |
defineVar(java.lang.String name,
java.lang.String type,
boolean isInput,
java.lang.String rangeStr)
|
void |
defineVar(java.lang.String name,
java.lang.String type,
boolean isInput,
java.lang.String rangeStr,
java.lang.String units,
java.lang.String description,
java.lang.String lowerBound,
java.lang.String upperBound,
java.lang.String enumValues,
java.lang.String enumAliases,
java.lang.String format)
|
void |
defineVar(java.lang.String name,
java.lang.String type,
boolean isInput,
java.lang.String rangesStr,
java.lang.String units,
java.lang.String description,
java.lang.String lowerBound,
java.lang.String upperBound,
java.lang.String enumValues,
java.lang.String enumAliases,
java.lang.String format,
java.lang.String fformat)
|
protected void |
ensureFileParser(ParseableFile.Mode mode)
Ensure there is a valid parser |
void |
generate()
Generate the input file |
void |
markAsBeginning(int row)
Makes the specified row act as row 1 for all subsequent calls until another markAsBeginning or clearMarks call. |
void |
markAsBeginning(java.lang.String find)
Searches for the specified string and makes the row where the string was found act as row 1 for all subsequent calls until another markAsBeginning or clearMarks call. |
void |
markAsBeginning(java.lang.String find,
int occurrence,
int offset,
boolean regex)
Searches for the specified string and makes the row where the string was found act as row 1 for all subsequent calls until another markAsBeginning or clearMarks call. |
void |
markAsEnd(int row)
Makes the specified row act as row -1 (end of file) for all subsequent calls until another markAsBeginning or clearMarks call. |
void |
markAsEnd(java.lang.String find)
Searches for the specified string, starting from the end of the file and working towards the beginning, and makes the row where the string was found act as row -1 (end of file) for all subsequent calls until another markAsEnd or clearMarks call. |
void |
markAsEnd(java.lang.String find,
int occurrence,
int offset,
boolean regex)
Searches for the specified string and makes the row where the string was found act as row -1 (end of file) for all subsequent calls until another markAsEnd or clearMarks call. |
protected Parser |
newParser(java.io.File rFile,
Parser.Mode pmode)
Generate a new parser for the given file and mode |
void |
parse()
Parse the output file |
double |
readDouble(int row,
int field)
Reads a value out of the input file. |
long |
readLong(int row,
int field)
Reads a value out of the input file. |
java.lang.String |
readValue(int row,
int field)
Reads a value out of the input file. |
void |
setDelimiters(java.lang.String delimiters)
Sets the delimiters which should be used for parsing lines into fields. |
void |
setFileToGenerate(java.lang.String fileName)
Set the file to be generated |
void |
setFileToParse(java.lang.String fileName)
Set the file to be parsed |
void |
transferArray(PHXSimpleArray var,
int rowstart,
int rowend,
int fieldstart,
int fieldend)
Transfers the data for a particular array. |
void |
transferArray(PHXSimpleArray var,
int rowstart,
int rowend,
int fieldstart,
int fieldend,
boolean resizable,
java.lang.String fformat)
Transfers the data for a particular array. |
void |
transferArray(PHXSimpleArray var,
int rowstart,
int rowend,
int fieldstart,
int fieldend,
boolean resizable,
java.lang.String fformat,
int numDimensions)
Transfers the data for a particular array. |
void |
transferArray(PHXSimpleArray var,
int rowstart,
int rowend,
int fieldstart,
int fieldend,
int numDimensions)
Transfers the data for a particular array. |
void |
transferKeyVar(PHXSimpleType var,
java.lang.String key)
Transfers the data for a particular variable. |
void |
transferKeyVar(PHXSimpleType var,
java.lang.String key,
int occurrence,
int rowOffset,
int field,
java.lang.String fformat)
Transfers the data for a particular variable. |
void |
transferVar(PHXSimpleType var,
int row,
int field)
Transfers the data for a particular variable. |
void |
transferVar(PHXSimpleType var,
int row,
int field,
java.lang.String fformat)
Transfers the data for a particular variable. |
void |
transferVar(java.lang.String name,
PHXSimpleType var,
int row,
int field)
|
void |
transferVar(java.lang.String name,
PHXSimpleType var,
int row,
int field,
java.lang.String fformat)
|
protected void |
transferVars(ParseableFile.Mode mode)
Note that if wrapper is null, variable collection should be empty, and there should be no harm in calling this method Transfer values for variables that have been defined using methods from the concrete implementation, i.e. |
void |
writeValue(int row,
int field,
java.lang.String val)
Writes a token out to the output file. |
| Methods inherited from class com.phoenix_int.aserver.util.scriptwrapper.api.AbstractFile |
|---|
actionByMode, backup, close, delete, getEncoding, getRealFile, readTemplate, setEncoding, setEncoding, setFileToGenerateOrParse, setTempEmbedded, setTemplateFile, setVariable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.phoenix_int.aserver.util.scriptwrapper.api.ParseableFile |
|---|
backup, close, delete, readTemplate, setFileToGenerateOrParse, setTempEmbedded, setTemplateFile, setVariable |
| Field Detail |
|---|
@Deprecated public static final int GENERATE
ParseableFile.Mode.GENERATE
@Deprecated public static final int PARSE
ParseableFile.Mode.PARSE
@Deprecated public static final int READ_TEMPLATE
ParseableFile.Mode.READ_TEMPLATE
| Constructor Detail |
|---|
public PHXRowFieldFile(PHXScriptWrapperObject wrapper)
ParseableFile.Mode.GENERATE
wrapper - script-wrapper object
public PHXRowFieldFile(PHXScriptWrapperObject wrapper,
ParseableFile.Mode mode)
@Deprecated
public PHXRowFieldFile(PHXScriptWrapperObject wrapper,
int mode)
PHXRowFieldFile(PHXScriptWrapperObject, ParseableFile.Mode)
wrapper - The row field file will find files relative to the
run directory specified in this wrapper object.mode - parser mode
public PHXRowFieldFile(java.lang.String baseDirectory,
int mode)
Note: Using this constructor will make the resultant object incompatible
with certain methods. This was necessary for compatibility with QuickWrap.
The new constructors accept PHXScriptWrapperObject.
This constructor passes null instead.
baseDirectory - All files will be relative to this directorymode - parser mode| Method Detail |
|---|
public void generate()
throws java.io.IOException,
com.phoenix_int.aserver.util.PHXInvalidFormatException,
PHXNoSuchTokenException,
java.lang.IllegalAccessException,
java.lang.InstantiationException,
PHXNumberFormatException,
PHXBookmarkNotFoundException,
PHXSectionNotFoundException
generate in interface InputFilejava.io.IOException
com.phoenix_int.aserver.util.PHXInvalidFormatException
PHXNoSuchTokenException
java.lang.IllegalAccessException
java.lang.InstantiationException
PHXNumberFormatException
PHXBookmarkNotFoundException
PHXSectionNotFoundExceptionpublic void setFileToGenerate(java.lang.String fileName)
setFileToGenerate in interface InputFilefileName - file name
public void parse()
throws java.io.IOException,
com.phoenix_int.aserver.util.PHXInvalidFormatException,
PHXNoSuchTokenException,
java.lang.IllegalAccessException,
java.lang.InstantiationException,
PHXNumberFormatException,
PHXBookmarkNotFoundException,
PHXSectionNotFoundException
parse in interface OutputFilejava.io.IOException
com.phoenix_int.aserver.util.PHXInvalidFormatException
PHXNoSuchTokenException
java.lang.IllegalAccessException
java.lang.InstantiationException
PHXNumberFormatException
PHXBookmarkNotFoundException
PHXSectionNotFoundExceptionpublic void setFileToParse(java.lang.String fileName)
setFileToParse in interface OutputFilefileName - file name
protected Parser newParser(java.io.File rFile,
Parser.Mode pmode)
throws java.io.IOException
newParser in class AbstractFilerFile - The file to openpmode - caching mode for underlying parser
java.io.IOException
protected void ensureFileParser(ParseableFile.Mode mode)
throws java.io.IOException
ensureFileParser in class AbstractFilemode - parser mode in current context
java.io.IOException
public void defineSection(java.lang.String name,
java.lang.String start,
java.lang.String end,
java.lang.String delimiters)
throws com.phoenix_int.aserver.util.PHXNoSuchBookmarkException
com.phoenix_int.aserver.util.PHXNoSuchBookmarkException
public void defineBookmark(java.lang.String name,
java.lang.String parent,
java.lang.String start)
public void defineVar(java.lang.String name,
java.lang.String type,
boolean isInput,
java.lang.String rangeStr)
throws PHXNameAlreadyInUseException,
PHXInvalidNameException,
PHXInvalidTypeException
PHXNameAlreadyInUseException
PHXInvalidNameException
PHXInvalidTypeException
public void defineVar(java.lang.String name,
java.lang.String type,
boolean isInput,
java.lang.String rangeStr,
java.lang.String units,
java.lang.String description,
java.lang.String lowerBound,
java.lang.String upperBound,
java.lang.String enumValues,
java.lang.String enumAliases,
java.lang.String format)
throws PHXNameAlreadyInUseException,
PHXInvalidNameException,
PHXInvalidTypeException
PHXNameAlreadyInUseException
PHXInvalidNameException
PHXInvalidTypeException
public void defineVar(java.lang.String name,
java.lang.String type,
boolean isInput,
java.lang.String rangesStr,
java.lang.String units,
java.lang.String description,
java.lang.String lowerBound,
java.lang.String upperBound,
java.lang.String enumValues,
java.lang.String enumAliases,
java.lang.String format,
java.lang.String fformat)
throws PHXNameAlreadyInUseException,
PHXInvalidNameException,
PHXInvalidTypeException
PHXNameAlreadyInUseException
PHXInvalidNameException
PHXInvalidTypeException
protected void transferVars(ParseableFile.Mode mode)
throws java.io.IOException,
com.phoenix_int.aserver.util.PHXInvalidFormatException,
PHXNoSuchTokenException,
java.lang.IllegalAccessException,
java.lang.InstantiationException,
PHXNumberFormatException,
PHXBookmarkNotFoundException,
PHXSectionNotFoundException
Transfer values for variables that have been defined
using methods from the concrete implementation, i.e.
defineVar(String, String, boolean, String)
Variables defined using
PHXScriptWrapperObject.addVariable(String, String, boolean)
must be explicitly transferred using methods of the concrete
implementation class
transferVars in class AbstractFilejava.io.IOException
com.phoenix_int.aserver.util.PHXInvalidFormatException
PHXNoSuchTokenException
java.lang.IllegalAccessException
java.lang.InstantiationException
PHXNumberFormatException
PHXBookmarkNotFoundException
PHXSectionNotFoundException
public void transferVar(PHXSimpleType var,
int row,
int field)
throws java.io.IOException,
PHXNoSuchTokenException,
PHXNumberFormatException,
PHXBookmarkNotFoundException,
PHXSectionNotFoundException
ParseableFile.Mode.GENERATE
data is read from the var and put into the file, otherwise data is
read from the file into the variable.
var - The variable to read or writerow - The row in the file to read/write from/to.field - The field within the row to read/write from/to.
java.io.IOException
PHXNoSuchTokenException
PHXNumberFormatException
PHXBookmarkNotFoundException
PHXSectionNotFoundException
public void transferVar(java.lang.String name,
PHXSimpleType var,
int row,
int field)
throws java.io.IOException,
PHXNoSuchTokenException,
PHXNumberFormatException,
PHXBookmarkNotFoundException,
PHXSectionNotFoundException
java.io.IOException
PHXNoSuchTokenException
PHXNumberFormatException
PHXBookmarkNotFoundException
PHXSectionNotFoundException
public void transferVar(PHXSimpleType var,
int row,
int field,
java.lang.String fformat)
throws java.io.IOException,
PHXNoSuchTokenException,
com.phoenix_int.aserver.util.PHXInvalidFormatException,
PHXNumberFormatException,
PHXBookmarkNotFoundException,
PHXSectionNotFoundException
ParseableFile.Mode.GENERATE
data is read from the var and put into the file, otherwise data is
read from the file into the variable.
var - The variable to read or writerow - The row in the file to read/write from/to.field - The field within the row to read/write from/to.fformat - The fortran style format string to apply. Pass null
for standard formatting.
java.io.IOException
PHXNoSuchTokenException
com.phoenix_int.aserver.util.PHXInvalidFormatException
PHXNumberFormatException
PHXBookmarkNotFoundException
PHXSectionNotFoundException
public void transferVar(java.lang.String name,
PHXSimpleType var,
int row,
int field,
java.lang.String fformat)
throws java.io.IOException,
PHXNoSuchTokenException,
com.phoenix_int.aserver.util.PHXInvalidFormatException,
PHXNumberFormatException,
PHXBookmarkNotFoundException,
PHXSectionNotFoundException
java.io.IOException
PHXNoSuchTokenException
com.phoenix_int.aserver.util.PHXInvalidFormatException
PHXNumberFormatException
PHXBookmarkNotFoundException
PHXSectionNotFoundException
public void transferArray(PHXSimpleArray var,
int rowstart,
int rowend,
int fieldstart,
int fieldend)
throws java.io.IOException,
com.phoenix_int.aserver.util.PHXInvalidFormatException,
PHXNoSuchTokenException,
java.lang.IllegalAccessException,
java.lang.InstantiationException,
PHXNumberFormatException
ParseableFile.Mode.GENERATE
data is read from the var and put into the file, otherwise data is
read from the file into the variable.
var - The array to read or writerow - The row in the file to read/write from/to.field - The field within the row to read/write from/to.
java.io.IOException
com.phoenix_int.aserver.util.PHXInvalidFormatException
PHXNoSuchTokenException
java.lang.IllegalAccessException
java.lang.InstantiationException
PHXNumberFormatException
public void transferArray(PHXSimpleArray var,
int rowstart,
int rowend,
int fieldstart,
int fieldend,
int numDimensions)
throws java.io.IOException,
com.phoenix_int.aserver.util.PHXInvalidFormatException,
PHXNoSuchTokenException,
java.lang.IllegalAccessException,
java.lang.InstantiationException,
PHXNumberFormatException
ParseableFile.Mode.GENERATE
data is read from the var and put into the file, otherwise data is
read from the file into the variable.
var - The array to read or writerow - The row in the file to read/write from/to.field - The field within the row to read/write from/to.numDimensions - Either 1 or 2 to read/write 1 or 2-d arrays.
java.io.IOException
com.phoenix_int.aserver.util.PHXInvalidFormatException
PHXNoSuchTokenException
java.lang.IllegalAccessException
java.lang.InstantiationException
PHXNumberFormatException
public void transferArray(PHXSimpleArray var,
int rowstart,
int rowend,
int fieldstart,
int fieldend,
boolean resizable,
java.lang.String fformat)
throws java.io.IOException,
com.phoenix_int.aserver.util.PHXInvalidFormatException,
PHXNoSuchTokenException,
java.lang.IllegalAccessException,
java.lang.InstantiationException,
PHXNumberFormatException
ParseableFile.Mode.GENERATE
data is read from the var and put into the file, otherwise data is
read from the file into the variable.
var - The array to read or writerow - The row in the file to read/write from/to.field - The field within the row to read/write from/to.resizeable - Whether or not the array is resizable when
using ParseableFile.Mode.GENERATE.fformat - The fortran style format string to apply. Pass
null for standard formatting.
java.io.IOException
com.phoenix_int.aserver.util.PHXInvalidFormatException
PHXNoSuchTokenException
java.lang.IllegalAccessException
java.lang.InstantiationException
PHXNumberFormatException
public void transferArray(PHXSimpleArray var,
int rowstart,
int rowend,
int fieldstart,
int fieldend,
boolean resizable,
java.lang.String fformat,
int numDimensions)
throws java.io.IOException,
com.phoenix_int.aserver.util.PHXInvalidFormatException,
PHXNoSuchTokenException,
java.lang.IllegalAccessException,
java.lang.InstantiationException,
PHXNumberFormatException
ParseableFile.Mode.GENERATE
data is read from the var and put into the file, otherwise data is
read from the file into the variable.
var - The array to read or writerow - The row in the file to read/write from/to.field - The field within the row to read/write from/to.resizeable - Whether or not the array is resizable when
using ParseableFile.Mode.GENERATE.fformat - The fortran style format string to apply. Pass
null for standard formatting.numDimensions - The number of dimensions to read the array
as. Must be 1 or 2.
java.io.IOException
com.phoenix_int.aserver.util.PHXInvalidFormatException
PHXNoSuchTokenException
java.lang.IllegalAccessException
java.lang.InstantiationException
PHXNumberFormatException
public void transferKeyVar(PHXSimpleType var,
java.lang.String key)
throws java.io.IOException,
com.phoenix_int.aserver.util.PHXInvalidFormatException,
PHXNoSuchTokenException,
PHXNumberFormatException
ParseableFile.Mode.GENERATE
data is read from the var and put into the file, otherwise data is
read from the file into the variable.
var - The variable to read or writekey - The string to search for that identifies the variable
in the file.
java.io.IOException
com.phoenix_int.aserver.util.PHXInvalidFormatException
PHXNoSuchTokenException
PHXNumberFormatException
public void transferKeyVar(PHXSimpleType var,
java.lang.String key,
int occurrence,
int rowOffset,
int field,
java.lang.String fformat)
throws java.io.IOException,
com.phoenix_int.aserver.util.PHXInvalidFormatException,
PHXNoSuchTokenException,
PHXNumberFormatException
ParseableFile.Mode.GENERATE
data is read from the var and put into the file, otherwise data is
read from the file into the variable.
var - The variable to read or writekey - The string to search for that identifies the variable
in the file.occurrence - (default 1). Which occurrence of string to find.rowOffset - (default 0). Once the string is found, offset by
this many rowsfield - (default 1). Once the string is found, offset by this
many fields. If a negative number is used, it will count from
the end of the row backwards, but will not count past the key variable.fformat - The fortran style format string to apply. Pass
null for standard formatting.
java.io.IOException
com.phoenix_int.aserver.util.PHXInvalidFormatException
PHXNoSuchTokenException
PHXNumberFormatException
public java.lang.String readValue(int row,
int field)
throws java.io.IOException,
PHXNoSuchTokenException,
com.phoenix_int.aserver.util.PHXInvalidFormatException,
PHXBookmarkNotFoundException,
PHXSectionNotFoundException
ParseableFile.Mode.PARSE,
the input file is the fileToParse, otherwise it is the
template file.
row - The row of the file to read fromfield - The field of the file to read from.
java.lang.IllegalArgumentException - This function
does not work if setDelimiters("columns") has been
specified.
java.io.IOException
PHXNoSuchTokenException
com.phoenix_int.aserver.util.PHXInvalidFormatException
PHXBookmarkNotFoundException
PHXSectionNotFoundException
public long readLong(int row,
int field)
throws java.io.IOException,
PHXNoSuchTokenException,
java.lang.NumberFormatException,
com.phoenix_int.aserver.util.PHXInvalidFormatException,
PHXBookmarkNotFoundException,
PHXSectionNotFoundException
ParseableFile.Mode.PARSE,
the input file is the fileToParse, otherwise it is the
template file. Returns it as a long value.
row - The row of the file to read fromfield - The field of the file to read from.
java.lang.IllegalArgumentException - This function
does not work if setDelimiters("columns") has been
specified.
java.io.IOException
PHXNoSuchTokenException
java.lang.NumberFormatException
com.phoenix_int.aserver.util.PHXInvalidFormatException
PHXBookmarkNotFoundException
PHXSectionNotFoundException
public double readDouble(int row,
int field)
throws java.io.IOException,
PHXNoSuchTokenException,
java.lang.NumberFormatException,
com.phoenix_int.aserver.util.PHXInvalidFormatException,
PHXBookmarkNotFoundException,
PHXSectionNotFoundException
ParseableFile.Mode.PARSE,
the input file is the fileToParse, otherwise it is the
template file. Returns it as a double value.
row - The row of the file to read fromfield - The field of the file to read from.
java.lang.IllegalArgumentException - This function
does not work if setDelimiters("columns") has been
specified.
java.io.IOException
PHXNoSuchTokenException
java.lang.NumberFormatException
com.phoenix_int.aserver.util.PHXInvalidFormatException
PHXBookmarkNotFoundException
PHXSectionNotFoundException
public void writeValue(int row,
int field,
java.lang.String val)
throws java.io.IOException,
PHXNoSuchTokenException
ParseableFile.Mode.GENERATE.
row - The row of the file to read fromfield - The field of the file to read from.val - The string to write
java.lang.IllegalArgumentException - This function
does not work if setDelimiters("columns") has been
specified.
java.io.IOException
PHXNoSuchTokenException
public void setDelimiters(java.lang.String delimiters)
throws java.io.IOException
java.io.IOException
public void clearMarks()
throws java.io.IOException
java.io.IOException
public void markAsBeginning(java.lang.String find)
throws java.io.IOException,
PHXNoSuchTokenException
java.io.IOException
PHXNoSuchTokenException
public void markAsBeginning(java.lang.String find,
int occurrence,
int offset,
boolean regex)
throws java.io.IOException,
PHXNoSuchTokenException
find - The string to search for.occurrence - Search for the Nth occurrence of string (default 1)offset - After finding string, move down offset rows. May
be negative to move up. (default 0)regex - If true, the find parameter is a regular expression.
(default false)
java.io.IOException
PHXNoSuchTokenException
public void markAsBeginning(int row)
throws java.io.IOException,
PHXNoSuchTokenException
row - The row to set
java.io.IOException
PHXNoSuchTokenException
public void markAsEnd(java.lang.String find)
throws java.io.IOException,
PHXNoSuchTokenException
find - The string to search for.
java.io.IOException
PHXNoSuchTokenException
public void markAsEnd(java.lang.String find,
int occurrence,
int offset,
boolean regex)
throws java.io.IOException,
PHXNoSuchTokenException
find - The string to search for.occurrence - Search for the Nth occurrence of string (default 1)offset - After finding string, move down offset rows. May
be negative to move up. (default 0)regex - If true, the find parameter is a regular expression.
(default false)
java.io.IOException
PHXNoSuchTokenException
public void markAsEnd(int row)
throws java.io.IOException,
PHXNoSuchTokenException
row - The row to set
java.io.IOException
PHXNoSuchTokenException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||