|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--SDDS.java.SDDS.SDDSFile
The SDDS File object is used to read and write Self Describing Data Sets. It creates and manages SDDS Parameter objects and SDDS Column objects. A brief introduction to the SDDS concept can be found here.
| Field Summary | |
boolean |
asciiFile
|
boolean |
bigEndian
|
java.lang.String |
descriptionContents
|
java.lang.String |
descriptionText
|
java.lang.String |
fileName
|
boolean |
isURL
|
int |
layoutVersion
|
boolean |
noRowCount
|
java.net.URL |
URLName
|
| Constructor Summary | |
SDDSFile()
Create a new SDDS file that can be used to read and write SDDS files. |
|
SDDSFile(boolean binary)
Create a new SDDS file that can be used to read and write SDDS files. |
|
SDDSFile(java.lang.String filename)
Create a new SDDS file that can be used to read and write SDDS files. |
|
SDDSFile(java.lang.String filename,
boolean binary)
Create a new SDDS file that can be used to read and write SDDS files. |
|
SDDSFile(java.net.URL filename)
Create a new SDDS file that can be used to read and write SDDS files. |
|
| Method Summary | |
boolean |
addColumnElement(int column,
char v)
add a single element to a column of data |
boolean |
addColumnElement(int column,
double v)
add a single element to a column of data |
boolean |
addColumnElement(int column,
float v)
add a single element to a column of data |
boolean |
addColumnElement(int column,
long v)
add a single element to a column of data |
boolean |
addColumnElement(int column,
short v)
add a single element to a column of data |
boolean |
addColumnElement(int column,
java.lang.String v)
add a single element to a column of data |
boolean |
addColumnElement(java.lang.String name,
char v)
add a single element to a column of data |
boolean |
addColumnElement(java.lang.String name,
double v)
add a single element to a column of data |
boolean |
addColumnElement(java.lang.String name,
float v)
add a single element to a column of data |
boolean |
addColumnElement(java.lang.String name,
long v)
add a single element to a column of data |
boolean |
addColumnElement(java.lang.String name,
short v)
add a single element to a column of data |
boolean |
addColumnElement(java.lang.String name,
java.lang.String v)
add a single element to a column of data |
boolean |
closeInput()
Close the SDDS input file |
boolean |
closeOutput()
Close the SDDS output file |
int |
defineArray(java.lang.String name,
int type,
int dimensions)
Creates a new array with the specified settings. |
int |
defineArray(java.lang.String name,
java.lang.String type,
int dimensions)
Creates a new array with the specified settings. |
int |
defineArray(java.lang.String name,
java.lang.String symbol,
java.lang.String units,
java.lang.String description,
java.lang.String format_string,
java.lang.String group_name,
int type,
int field_length,
int dimensions)
Creates a new array with the specified settings. |
int |
defineArray(java.lang.String name,
java.lang.String symbol,
java.lang.String units,
java.lang.String description,
java.lang.String format_string,
java.lang.String group_name,
java.lang.String type,
int field_length,
int dimensions)
Creates a new array with the specified settings. |
boolean |
defineArrays(java.lang.String[] names,
int[] types,
int[] dimensions)
Creates new arrays with the specified settings. |
boolean |
defineArrays(java.lang.String[] names,
java.lang.String[] types,
int[] dimensions)
Creates new arrays with the specified settings. |
boolean |
defineArrays(java.lang.String[] names,
java.lang.String[] symbols,
java.lang.String[] units,
java.lang.String[] descriptions,
java.lang.String[] format_strings,
java.lang.String[] group_names,
int[] types,
int[] field_lengths,
int[] dimensions)
Creates new arrays with the specified settings. |
boolean |
defineArrays(java.lang.String[] names,
java.lang.String[] symbols,
java.lang.String[] units,
java.lang.String[] descriptions,
java.lang.String[] format_strings,
java.lang.String[] group_names,
java.lang.String[] types,
int[] field_lengths,
int[] dimensions)
Creates new arrays with the specified settings. |
int |
defineColumn(java.lang.String name,
int type)
Creates a new column with the specified settings. |
int |
defineColumn(java.lang.String name,
java.lang.String type)
Creates a new column with the specified settings. |
int |
defineColumn(java.lang.String name,
java.lang.String symbol,
java.lang.String units,
java.lang.String description,
java.lang.String format_string,
int type,
int field_length)
Creates a new column with the specified settings. |
int |
defineColumn(java.lang.String name,
java.lang.String symbol,
java.lang.String units,
java.lang.String description,
java.lang.String format_string,
java.lang.String type,
int field_length)
Creates a new column with the specified settings. |
boolean |
defineColumns(java.lang.String[] names,
int[] types)
Creates new columns with the specified settings. |
boolean |
defineColumns(java.lang.String[] names,
java.lang.String[] types)
Creates new columns with the specified settings. |
boolean |
defineColumns(java.lang.String[] names,
java.lang.String[] symbols,
java.lang.String[] units,
java.lang.String[] descriptions,
java.lang.String[] format_strings,
int[] types,
int[] field_lengths)
Creates new columns with the specified settings. |
boolean |
defineColumns(java.lang.String[] names,
java.lang.String[] symbols,
java.lang.String[] units,
java.lang.String[] descriptions,
java.lang.String[] format_strings,
java.lang.String[] types,
int[] field_lengths)
Creates new columns with the specified settings. |
int |
defineParameter(java.lang.String name,
int type)
Creates a new parameter with the specified settings. |
int |
defineParameter(java.lang.String name,
java.lang.String type)
Creates a new parameter with the specified settings. |
int |
defineParameter(java.lang.String name,
java.lang.String symbol,
java.lang.String units,
java.lang.String description,
java.lang.String format_string,
int type,
java.lang.String fixed_value)
Creates a new parameter with the specified settings. |
int |
defineParameter(java.lang.String name,
java.lang.String symbol,
java.lang.String units,
java.lang.String description,
java.lang.String format_string,
java.lang.String type,
java.lang.String fixed_value)
Creates a new parameter with the specified settings. |
boolean |
defineParameters(java.lang.String[] names,
int[] types)
Creates new parameters with the specified settings. |
boolean |
defineParameters(java.lang.String[] names,
java.lang.String[] types)
Creates new parameters with the specified settings. |
boolean |
defineParameters(java.lang.String[] names,
java.lang.String[] symbols,
java.lang.String[] units,
java.lang.String[] descriptions,
java.lang.String[] format_strings,
int[] types,
java.lang.String[] fixed_values)
Creates new parameters with the specified settings. |
boolean |
defineParameters(java.lang.String[] names,
java.lang.String[] symbols,
java.lang.String[] units,
java.lang.String[] descriptions,
java.lang.String[] format_strings,
java.lang.String[] types,
java.lang.String[] fixed_values)
Creates new parameters with the specified settings. |
void |
deleteArray(java.lang.String name)
Delete array |
void |
deleteColumn(java.lang.String name)
Delete column |
boolean |
deletePage(int page)
Delete page at index specifed |
void |
deleteParameter(java.lang.String name)
Delete parameter |
void |
deleteRow(int page,
int row)
Deletes the value of the column at a chosen page and at a chosen row |
boolean |
duplicateCopy(SDDSFile file,
boolean parameters,
boolean arrays,
boolean columns)
Duplicate an SDDSFile object copying over appropriate header information and data. |
java.lang.String[] |
getAllArrayUnits()
Get all array units |
java.lang.String[] |
getAllColumnUnits()
Get all column units |
java.lang.String[] |
getAllParameterUnits()
Get all parameter units |
java.lang.String |
getArrayDescription(int index)
Get array description |
java.lang.String[] |
getArrayDescriptions()
Get array descriptions |
int[] |
getArrayDim(int index)
Returns the number of elements in each dimension of the array |
int |
getArrayDimensions(int index)
Get array dimensions |
int |
getArrayFieldLength(int index)
Get array field length |
int[] |
getArrayFieldLengths()
Get field lengths |
java.lang.String |
getArrayFormatString(int index)
Get array format string |
java.lang.String[] |
getArrayFormatStrings()
Get array format strings |
java.lang.String |
getArrayGroupName(int index)
Get array group name |
java.lang.String[] |
getArrayGroupNames()
Get array group names |
int |
getArrayIndex(java.lang.String name)
Return the index of the specified array. |
int[] |
getArrayIndexes(java.lang.String[] names)
Return the indexes of the specified arrays. |
java.lang.String |
getArrayName(int index)
Get array name |
java.lang.String[] |
getArrayNames()
Get array names |
java.lang.String |
getArraySymbol(int index)
Get array symbol |
java.lang.String[] |
getArraySymbols()
Get array symbols |
int |
getArrayType(int index)
Get array type |
int[] |
getArrayTypes()
Get array types |
java.lang.String |
getArrayUnits(int index)
Get array units |
java.lang.Object[] |
getArrayValues(int index,
int page,
boolean string_quotes)
Get the values of the array for a chosen page |
java.lang.String |
getColumnDescription(int index)
Get column description |
java.lang.String[] |
getColumnDescriptions()
Get column descriptions |
int |
getColumnFieldLength(int index)
Get column field length |
int[] |
getColumnFieldLengths()
Get field lengths |
java.lang.String |
getColumnFormatString(int index)
Get column format string |
java.lang.String[] |
getColumnFormatStrings()
Get column format strings |
int |
getColumnIndex(java.lang.String name)
Return the index of the specified column. |
int[] |
getColumnIndexes(java.lang.String[] names)
Return the indexes of the specified columns. |
java.lang.String |
getColumnName(int index)
Get column name |
java.lang.String[] |
getColumnNames()
Get column names |
java.lang.String |
getColumnSymbol(int index)
Get column symbol |
java.lang.String[] |
getColumnSymbols()
Get column symbols |
int |
getColumnType(int index)
Get column type |
int[] |
getColumnTypes()
Get column types |
java.lang.String |
getColumnUnits(int index)
Get column units |
java.lang.Object[] |
getColumnValues(int index,
int page,
boolean string_quotes)
Get the values of the column for a chosen page |
java.lang.String |
getErrors()
Return all the error messages. |
java.lang.String |
getParameterDescription(int index)
Get parameter description |
java.lang.String[] |
getParameterDescriptions()
Get parameter descriptions |
java.lang.String |
getParameterFixedValue(int index)
Get parameter fixed value |
java.lang.String |
getParameterFormatString(int index)
Get parameter format string |
java.lang.String[] |
getParameterFormatStrings()
Get parameter format strings |
int |
getParameterIndex(java.lang.String name)
Return the index of the specified parameter. |
int[] |
getParameterIndexes(java.lang.String[] names)
Return the indexes of the specified parameter. |
java.lang.String |
getParameterName(int index)
Get parameter name |
java.lang.String[] |
getParameterNames()
Get parameter names |
java.lang.String |
getParameterSymbol(int index)
Get parameter symbol |
java.lang.String[] |
getParameterSymbols()
Get parameter symbols |
int |
getParameterType(int index)
Get parameter type |
int[] |
getParameterTypes()
Get parameter types |
java.lang.String |
getParameterUnits(int index)
Get parameter units |
java.lang.Object |
getParameterValue(int index,
int page,
boolean string_quotes)
Get the value of the parameter for a chosen page |
int |
getRowCount(int page)
Get the number of rows on a page. |
boolean |
insertPage(int page)
Insert blank page at index specifed |
void |
makeBlankPages(int lastpage)
Create blank pages up to the last page specified |
boolean |
openInputFile()
Open SDDS input file |
boolean |
openOutputFile()
Open a file for writting. |
int |
pageCount()
Get the number of pages in the SDDS object |
boolean |
parseHeaders()
Parse SDDS input file header lines |
void |
printErrors()
Print the error messages to standard error. |
boolean |
readAsciiData()
Read SDDS input file ascii data |
boolean |
readBinaryData()
Read SDDS input file binary data |
boolean |
readFile()
Read the SDDS file |
void |
renameArray(java.lang.String oldname,
java.lang.String newname)
Rename array |
void |
renameColumn(java.lang.String oldname,
java.lang.String newname)
Rename column |
void |
renameParameter(java.lang.String oldname,
java.lang.String newname)
Rename parameter |
boolean |
setArray(int arrayIndex,
char[] values,
int page)
Set the values of the array at the specified page. |
boolean |
setArray(int arrayIndex,
double[] values,
int page)
Set the values of the array at the specified page. |
boolean |
setArray(int arrayIndex,
float[] values,
int page)
Set the values of the array at the specified page. |
boolean |
setArray(int arrayIndex,
int[] values,
int page)
Set the values of the array at the specified page. |
boolean |
setArray(int arrayIndex,
long[] values,
int page)
Set the values of the array at the specified page. |
boolean |
setArray(int arrayIndex,
short[] values,
int page)
Set the values of the array at the specified page. |
boolean |
setArray(int arrayIndex,
java.lang.String[] values,
int page)
Set the values of the array at the specified page. |
boolean |
setArray(java.lang.String name,
char[] values,
int page)
Set the values of the array at the specified page. |
boolean |
setArray(java.lang.String name,
double[] values,
int page)
Set the values of the array at the specified page. |
boolean |
setArray(java.lang.String name,
float[] values,
int page)
Set the values of the array at the specified page. |
boolean |
setArray(java.lang.String name,
int[] values,
int page)
Set the values of the array at the specified page. |
boolean |
setArray(java.lang.String name,
long[] values,
int page)
Set the values of the array at the specified page. |
boolean |
setArray(java.lang.String name,
short[] values,
int page)
Set the values of the array at the specified page. |
boolean |
setArray(java.lang.String name,
java.lang.String[] values,
int page)
Set the values of the array at the specified page. |
void |
setArrayDescription(int index,
java.lang.String description)
Set array description |
void |
setArrayDim(int index,
int[] dim)
Returns the number of elements in each dimension of the array |
void |
setArrayFieldLength(int index,
int field_length)
Set array field length |
void |
setArrayFormatString(int index,
java.lang.String format_string)
Set array format string |
void |
setArrayGroupName(int index,
java.lang.String group_name)
Set array group name |
void |
setArraySymbol(int index,
java.lang.String symbol)
Set array symbol |
void |
setArrayUnits(int index,
java.lang.String units)
Set array units |
boolean |
setColumn(int columnIndex,
char[] values,
int page)
Set the values of the column at the specified page. |
boolean |
setColumn(int columnIndex,
char[] values,
int page,
int startRow)
Set the values of the column at the specified page starting at the specified row. |
boolean |
setColumn(int columnIndex,
double[] values,
int page)
Set the values of the column at the specified page. |
boolean |
setColumn(int columnIndex,
double[] values,
int page,
int startRow)
Set the values of the column at the specified page starting at the specified row. |
boolean |
setColumn(int columnIndex,
float[] values,
int page)
Set the values of the column at the specified page. |
boolean |
setColumn(int columnIndex,
float[] values,
int page,
int startRow)
Set the values of the column at the specified page starting at the specified row. |
boolean |
setColumn(int columnIndex,
int[] values,
int page)
Set the values of the column at the specified page. |
boolean |
setColumn(int columnIndex,
int[] values,
int page,
int startRow)
Set the values of the column at the specified page starting at the specified row. |
boolean |
setColumn(int columnIndex,
long[] values,
int page)
Set the values of the column at the specified page. |
boolean |
setColumn(int columnIndex,
long[] values,
int page,
int startRow)
Set the values of the column at the specified page starting at the specified row. |
boolean |
setColumn(int columnIndex,
short[] values,
int page)
Set the values of the column at the specified page. |
boolean |
setColumn(int columnIndex,
short[] values,
int page,
int startRow)
Set the values of the column at the specified page starting at the specified row. |
boolean |
setColumn(int columnIndex,
java.lang.String[] values,
int page)
Set the values of the column at the specified page. |
boolean |
setColumn(int columnIndex,
java.lang.String[] values,
int page,
int startRow)
Set the values of the column at the specified page starting at the specified row. |
boolean |
setColumn(java.lang.String name,
char[] values,
int page)
Set the values of the column at the specified page. |
boolean |
setColumn(java.lang.String name,
char[] values,
int page,
int startRow)
Set the values of the column at the specified page starting at the specified row. |
boolean |
setColumn(java.lang.String name,
double[] values,
int page)
Set the values of the column at the specified page. |
boolean |
setColumn(java.lang.String name,
double[] values,
int page,
int startRow)
Set the values of the column at the specified page starting at the specified row. |
boolean |
setColumn(java.lang.String name,
float[] values,
int page)
Set the values of the column at the specified page. |
boolean |
setColumn(java.lang.String name,
float[] values,
int page,
int startRow)
Set the values of the column at the specified page starting at the specified row. |
boolean |
setColumn(java.lang.String name,
int[] values,
int page)
Set the values of the column at the specified page. |
boolean |
setColumn(java.lang.String name,
int[] values,
int page,
int startRow)
Set the values of the column at the specified page starting at the specified row. |
boolean |
setColumn(java.lang.String name,
long[] values,
int page)
Set the values of the column at the specified page. |
boolean |
setColumn(java.lang.String name,
long[] values,
int page,
int startRow)
Set the values of the column at the specified page starting at the specified row. |
boolean |
setColumn(java.lang.String name,
short[] values,
int page)
Set the values of the column at the specified page. |
boolean |
setColumn(java.lang.String name,
short[] values,
int page,
int startRow)
Set the values of the column at the specified page starting at the specified row. |
boolean |
setColumn(java.lang.String name,
java.lang.String[] values,
int page)
Set the values of the column at the specified page. |
boolean |
setColumn(java.lang.String name,
java.lang.String[] values,
int page,
int startRow)
Set the values of the column at the specified page starting at the specified row. |
void |
setColumnDescription(int index,
java.lang.String description)
Set column description |
boolean |
setColumnElement(int columnIndex,
char value,
int page,
int row)
Set the value of the column element at the specified page and row. |
boolean |
setColumnElement(int columnIndex,
double value,
int page,
int row)
Set the value of the column element at the specified page and row. |
boolean |
setColumnElement(int columnIndex,
float value,
int page,
int row)
Set the value of the column element at the specified page and row. |
boolean |
setColumnElement(int columnIndex,
int value,
int page,
int row)
Set the value of the column element at the specified page and row. |
boolean |
setColumnElement(int columnIndex,
long value,
int page,
int row)
Set the value of the column element at the specified page and row. |
boolean |
setColumnElement(int columnIndex,
short value,
int page,
int row)
Set the value of the column element at the specified page and row. |
boolean |
setColumnElement(int columnIndex,
java.lang.String value,
int page,
int row)
Set the value of the column element at the specified page and row. |
boolean |
setColumnElement(java.lang.String name,
char value,
int page,
int row)
Set the value of the column element at the specified page and row. |
boolean |
setColumnElement(java.lang.String name,
double value,
int page,
int row)
Set the value of the column element at the specified page and row. |
boolean |
setColumnElement(java.lang.String name,
float value,
int page,
int row)
Set the value of the column element at the specified page and row. |
boolean |
setColumnElement(java.lang.String name,
int value,
int page,
int row)
Set the value of the column element at the specified page and row. |
boolean |
setColumnElement(java.lang.String name,
long value,
int page,
int row)
Set the value of the column element at the specified page and row. |
boolean |
setColumnElement(java.lang.String name,
short value,
int page,
int row)
Set the value of the column element at the specified page and row. |
boolean |
setColumnElement(java.lang.String name,
java.lang.String value,
int page,
int row)
Set the value of the column element at the specified page and row. |
void |
setColumnFieldLength(int index,
int field_length)
Set column field length |
void |
setColumnFormatString(int index,
java.lang.String format_string)
Set column format string |
void |
setColumnSymbol(int index,
java.lang.String symbol)
Set column symbol |
void |
setColumnUnits(int index,
java.lang.String units)
Set column units |
void |
setDescription(java.lang.String text,
java.lang.String contents)
Set the description text and contents. |
void |
setEndian(boolean little_endian)
Set endian mode for accessing files. |
void |
setError(java.lang.String error_text)
Append to the error description array. |
boolean |
setFileName(java.lang.String filename)
Set the file name for input and output. |
void |
setMode(boolean binary)
Set binary mode for accessing files. |
boolean |
setNoRowCount(boolean norowcount)
Set for fixed number of rows in column data or dynamic. |
boolean |
setParameter(int parameterIndex,
char[] values,
int startPage)
Set the values of the parameter starting from the specified page. |
boolean |
setParameter(int parameterIndex,
char value,
int page)
Set the value of the parameter at the specified page. |
boolean |
setParameter(int parameterIndex,
double[] values,
int startPage)
Set the values of the parameter starting from the specified page. |
boolean |
setParameter(int parameterIndex,
double value,
int page)
Set the value of the parameter at the specified page. |
boolean |
setParameter(int parameterIndex,
float[] values,
int startPage)
Set the values of the parameter starting from the specified page. |
boolean |
setParameter(int parameterIndex,
float value,
int page)
Set the value of the parameter at the specified page. |
boolean |
setParameter(int parameterIndex,
int[] values,
int startPage)
Set the values of the parameter starting from the specified page. |
boolean |
setParameter(int parameterIndex,
int value,
int page)
Set the value of the parameter at the specified page. |
boolean |
setParameter(int parameterIndex,
long[] values,
int startPage)
Set the values of the parameter starting from the specified page. |
boolean |
setParameter(int parameterIndex,
long value,
int page)
Set the value of the parameter at the specified page. |
boolean |
setParameter(int parameterIndex,
short[] values,
int startPage)
Set the values of the parameter starting from the specified page. |
boolean |
setParameter(int parameterIndex,
short value,
int page)
Set the value of the parameter at the specified page. |
boolean |
setParameter(int parameterIndex,
java.lang.String[] values,
int startPage)
Set the values of the parameter starting from the specified page. |
boolean |
setParameter(int parameterIndex,
java.lang.String value,
int page)
Set the value of the parameter at the specified page. |
boolean |
setParameter(java.lang.String name,
char[] values,
int startPage)
Set the values of the parameter starting from the specified page. |
boolean |
setParameter(java.lang.String name,
char value,
int page)
Set the value of the parameter at the specified page. |
boolean |
setParameter(java.lang.String name,
double[] values,
int startPage)
Set the values of the parameter starting from the specified page. |
boolean |
setParameter(java.lang.String name,
double value,
int page)
Set the value of the parameter at the specified page. |
boolean |
setParameter(java.lang.String name,
float[] values,
int startPage)
Set the values of the parameter starting from the specified page. |
boolean |
setParameter(java.lang.String name,
float value,
int page)
Set the value of the parameter at the specified page. |
boolean |
setParameter(java.lang.String name,
int[] values,
int startPage)
Set the values of the parameter starting from the specified page. |
boolean |
setParameter(java.lang.String name,
int value,
int page)
Set the value of the parameter at the specified page. |
boolean |
setParameter(java.lang.String name,
long[] values,
int startPage)
Set the values of the parameter starting from the specified page. |
boolean |
setParameter(java.lang.String name,
long value,
int page)
Set the value of the parameter at the specified page. |
boolean |
setParameter(java.lang.String name,
short[] values,
int startPage)
Set the values of the parameter starting from the specified page. |
boolean |
setParameter(java.lang.String name,
short value,
int page)
Set the value of the parameter at the specified page. |
boolean |
setParameter(java.lang.String name,
java.lang.String[] values,
int startPage)
Set the values of the parameter starting from the specified page. |
boolean |
setParameter(java.lang.String name,
java.lang.String value,
int page)
Set the value of the parameter at the specified page. |
void |
setParameterDescription(int index,
java.lang.String description)
Set parameter description |
void |
setParameterFixedValue(int index,
java.lang.String fixed_value)
Set parameter fixed value |
void |
setParameterFormatString(int index,
java.lang.String format_string)
Set parameter format string |
boolean |
setParameters(int[] parameterIndexes,
char[][] values,
int startPage)
Set the values of the parameters starting at the specified page. |
boolean |
setParameters(int[] parameterIndexes,
char[] values,
int page)
Set the values of the parameters at the specified page. |
boolean |
setParameters(int[] parameterIndexes,
double[][] values,
int startPage)
Set the values of the parameters starting at the specified page. |
boolean |
setParameters(int[] parameterIndexes,
double[] values,
int page)
Set the values of the parameters at the specified page. |
boolean |
setParameters(int[] parameterIndexes,
float[][] values,
int startPage)
Set the values of the parameters starting at the specified page. |
boolean |
setParameters(int[] parameterIndexes,
float[] values,
int page)
Set the values of the parameters at the specified page. |
boolean |
setParameters(int[] parameterIndexes,
int[][] values,
int startPage)
Set the values of the parameters starting at the specified page. |
boolean |
setParameters(int[] parameterIndexes,
int[] values,
int page)
Set the values of the parameters at the specified page. |
boolean |
setParameters(int[] parameterIndexes,
long[][] values,
int startPage)
Set the values of the parameters starting at the specified page. |
boolean |
setParameters(int[] parameterIndexes,
long[] values,
int page)
Set the values of the parameters at the specified page. |
boolean |
setParameters(int[] parameterIndexes,
short[][] values,
int startPage)
Set the values of the parameters starting at the specified page. |
boolean |
setParameters(int[] parameterIndexes,
short[] values,
int page)
Set the values of the parameters at the specified page. |
boolean |
setParameters(int[] parameterIndexes,
java.lang.String[][] values,
int startPage)
Set the values of the parameters starting at the specified page. |
boolean |
setParameters(int[] parameterIndexes,
java.lang.String[] values,
int page)
Set the values of the parameters at the specified page. |
boolean |
setParameters(java.lang.String[] names,
char[][] values,
int startPage)
Set the values of the parameters starting at the specified page. |
boolean |
setParameters(java.lang.String[] names,
char[] values,
int page)
Set the values of the parameters at the specified page. |
boolean |
setParameters(java.lang.String[] names,
double[][] values,
int startPage)
Set the values of the parameters starting at the specified page. |
boolean |
setParameters(java.lang.String[] names,
double[] values,
int page)
Set the values of the parameters at the specified page. |
boolean |
setParameters(java.lang.String[] names,
float[][] values,
int startPage)
Set the values of the parameters starting at the specified page. |
boolean |
setParameters(java.lang.String[] names,
float[] values,
int page)
Set the values of the parameters at the specified page. |
boolean |
setParameters(java.lang.String[] names,
int[][] values,
int startPage)
Set the values of the parameters starting at the specified page. |
boolean |
setParameters(java.lang.String[] names,
int[] values,
int page)
Set the values of the parameters at the specified page. |
boolean |
setParameters(java.lang.String[] names,
long[][] values,
int startPage)
Set the values of the parameters starting at the specified page. |
boolean |
setParameters(java.lang.String[] names,
long[] values,
int page)
Set the values of the parameters at the specified page. |
boolean |
setParameters(java.lang.String[] names,
short[][] values,
int startPage)
Set the values of the parameters starting at the specified page. |
boolean |
setParameters(java.lang.String[] names,
short[] values,
int page)
Set the values of the parameters at the specified page. |
boolean |
setParameters(java.lang.String[] names,
java.lang.String[][] values,
int startPage)
Set the values of the parameters starting at the specified page. |
boolean |
setParameters(java.lang.String[] names,
java.lang.String[] values,
int page)
Set the values of the parameters at the specified page. |
void |
setParameterSymbol(int index,
java.lang.String symbol)
Set parameter symbol |
void |
setParameterUnits(int index,
java.lang.String units)
Set parameter units |
boolean |
switchToNewFile(java.lang.String fileName)
Switch writing of column data from one file to a new file without having to redefine parameters, arrays and columns. |
boolean |
writeArrayHeader(int index)
Write the specified array header to a file. |
boolean |
writeArrayHeaders()
Write the array headers to a file. |
boolean |
writeColumnHeader(int index)
Write the specified column header to a file. |
boolean |
writeColumnHeaders()
Write the column headers to a file. |
boolean |
writeDescription()
Write the description to a file. |
boolean |
writeFile()
Write out the SDDS file |
boolean |
writeLayout()
Write the layout to a file. |
boolean |
writePage(int page)
Write specified the page to a file. |
boolean |
writePages()
Write all the pages to a file. |
boolean |
writePages(int startPage,
int endPage)
Write specified the pages to a file. |
boolean |
writeParameterHeader(int index)
Write the specified parameter header to a file. |
boolean |
writeParameterHeaders()
Write the parameter headers to a file. |
boolean |
writeRow()
Write a new row of column data. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public java.lang.String fileName
public java.net.URL URLName
public java.lang.String descriptionText
public java.lang.String descriptionContents
public boolean asciiFile
public boolean noRowCount
public boolean bigEndian
public int layoutVersion
public boolean isURL
| Constructor Detail |
public SDDSFile()
public SDDSFile(java.lang.String filename)
filename - file name to read or write datapublic SDDSFile(java.net.URL filename)
filename - file name to read or write datapublic SDDSFile(boolean binary)
binary - true if binary output, false if ascii output
public SDDSFile(java.lang.String filename,
boolean binary)
filename - file name to read or write databinary - true if binary output, false if ascii output| Method Detail |
public boolean setFileName(java.lang.String filename)
filename - file name to read or write datatrue if successfulfalse if an error occurspublic void setMode(boolean binary)
binary - true if binary output, false if ascii outputpublic void setEndian(boolean little_endian)
little_endian - true if little endian input and output,
false if big endian input and output. Not used with ascii files.public boolean setNoRowCount(boolean norowcount)
noRowCount - true dynamic column data
false fixed number of rows in column datatrue if successful false if an error occurspublic boolean switchToNewFile(java.lang.String fileName)
fileName - fileName The new file to be written intotrue If successfalse If an error occurs
public boolean duplicateCopy(SDDSFile file,
boolean parameters,
boolean arrays,
boolean columns)
file - SDDSFile object to be copiedparameters - true copy parameter informationfalse ignore parameter dataarrays - true copy array informationfalse ignore array datacolumns - true copy column informationfalse ignore column datatrue if successfulfalse if error occurspublic boolean openOutputFile()
true if successfulfalse if error occurspublic boolean writeFile()
true if successfulfalse if an error occurspublic boolean readFile()
true if successfulfalse if an error occurspublic boolean openInputFile()
true if successfulfalse if an error occurspublic boolean parseHeaders()
true if successfulfalse if an error occurspublic boolean readBinaryData()
true if successfulfalse if an error occurspublic boolean readAsciiData()
true if successfulfalse if an error occurspublic void makeBlankPages(int lastpage)
lastpage - last page to create blank pagepublic boolean insertPage(int page)
page - index of page to create;public boolean deletePage(int page)
page - index of page to delete;public boolean closeOutput()
true if successfulfalse if error occurspublic boolean closeInput()
true if successfulfalse if error occurs
public void setDescription(java.lang.String text,
java.lang.String contents)
text - may be nullcontents - may be nullpublic void deleteParameter(java.lang.String name)
name - name of the parameterpublic void deleteArray(java.lang.String name)
name - name of the arraypublic void deleteColumn(java.lang.String name)
name - name of the column
public void renameParameter(java.lang.String oldname,
java.lang.String newname)
oldname - old name of the parameternewname - new name of the parameter
public void renameArray(java.lang.String oldname,
java.lang.String newname)
oldname - old name of the arraynewname - new name of the array
public void renameColumn(java.lang.String oldname,
java.lang.String newname)
oldname - old name of the columnnewname - new name of the column
public void setColumnSymbol(int index,
java.lang.String symbol)
index - index of the columnsymbol - symbol for the column
public void setArraySymbol(int index,
java.lang.String symbol)
index - index of the arraysymbol - symbol for the array
public void setParameterSymbol(int index,
java.lang.String symbol)
index - index of the parametersymbol - symbol for the parameter
public void setColumnUnits(int index,
java.lang.String units)
index - index of the columnunits - units for the column
public void setArrayUnits(int index,
java.lang.String units)
index - index of the arrayunits - units for the array
public void setParameterUnits(int index,
java.lang.String units)
index - index of the parameterunits - units for the parameter
public void setColumnDescription(int index,
java.lang.String description)
index - index of the columndescription - description for the column
public void setArrayDescription(int index,
java.lang.String description)
index - index of the arraydescription - description for the array
public void setParameterDescription(int index,
java.lang.String description)
index - index of the parameterdescription - description for the parameter
public void setColumnFormatString(int index,
java.lang.String format_string)
index - index of the columnformat_string - format string for the column
public void setArrayFormatString(int index,
java.lang.String format_string)
index - index of the arrayformat_string - format string for the array
public void setParameterFormatString(int index,
java.lang.String format_string)
index - index of the parameterformat_string - format string for the parameter
public void setArrayGroupName(int index,
java.lang.String group_name)
index - index of the arraygroup_name - group name for the array
public void setColumnFieldLength(int index,
int field_length)
index - index of the columnfield_length - field length for the column
public void setArrayFieldLength(int index,
int field_length)
index - index of the arrayfield_length - field length for the array
public void setParameterFixedValue(int index,
java.lang.String fixed_value)
index - index of the parameterfixed_value - fixed_value for the parameterpublic java.lang.String[] getParameterNames()
public java.lang.String getParameterName(int index)
index - index of the parameterpublic java.lang.String[] getArrayNames()
public java.lang.String getArrayName(int index)
index - index of the arraypublic java.lang.String[] getColumnNames()
public java.lang.String getColumnName(int index)
index - index of the columnpublic java.lang.String[] getAllParameterUnits()
public java.lang.String getParameterUnits(int index)
index - index of the parameterpublic java.lang.String[] getAllArrayUnits()
public java.lang.String getArrayUnits(int index)
index - index of the arraypublic java.lang.String[] getAllColumnUnits()
public java.lang.String getColumnUnits(int index)
index - index of the columnpublic java.lang.String[] getParameterSymbols()
public java.lang.String getParameterSymbol(int index)
index - index of the parameterpublic java.lang.String[] getArraySymbols()
public java.lang.String getArraySymbol(int index)
index - index of the arraypublic java.lang.String[] getColumnSymbols()
public java.lang.String getColumnSymbol(int index)
index - index of the columnpublic java.lang.String[] getParameterFormatStrings()
public java.lang.String getParameterFormatString(int index)
index - index of the parameterpublic java.lang.String[] getArrayFormatStrings()
public java.lang.String getArrayFormatString(int index)
index - index of the arraypublic java.lang.String[] getColumnFormatStrings()
public java.lang.String getColumnFormatString(int index)
index - index of the columnpublic java.lang.String[] getArrayGroupNames()
public java.lang.String getArrayGroupName(int index)
index - index of the arraypublic int[] getParameterTypes()
public int getParameterType(int index)
index - index of the parameterpublic int[] getArrayTypes()
public int getArrayType(int index)
index - index of the arraypublic int[] getColumnTypes()
public int getColumnType(int index)
index - index of the columnpublic int[] getColumnFieldLengths()
public int[] getArrayFieldLengths()
public int getColumnFieldLength(int index)
index - index of the columnpublic int getArrayFieldLength(int index)
index - index of the arraypublic int getArrayDimensions(int index)
index - index of the arraypublic int[] getArrayDim(int index)
index - index of the array
public void setArrayDim(int index,
int[] dim)
index - index of the arraydim - array of sdds array dimensionspublic java.lang.String[] getParameterDescriptions()
public java.lang.String getParameterDescription(int index)
index - index of the parameterpublic java.lang.String[] getArrayDescriptions()
public java.lang.String getArrayDescription(int index)
index - index of the arraypublic java.lang.String[] getColumnDescriptions()
public java.lang.String getColumnDescription(int index)
index - index of the columnpublic java.lang.String getParameterFixedValue(int index)
index - index of the parameter
public java.lang.Object[] getColumnValues(int index,
int page,
boolean string_quotes)
index - index of the columnstring_quotes - true if quotes are to be added around stringsfalse if raw strings are to be outputed.page - the page of the column, must be greater then 0
public java.lang.Object[] getArrayValues(int index,
int page,
boolean string_quotes)
index - index of the arraystring_quotes - true if quotes are to be added around stringsfalse if raw strings are to be outputed.page - the page of the array, must be greater then 0
public java.lang.Object getParameterValue(int index,
int page,
boolean string_quotes)
index - index of the parameterstring_quotes - true if quotes are to be added around stringsfalse if raw strings are to be outputed.page - the page of the parameter, must be greater then 0
public int defineParameter(java.lang.String name,
java.lang.String symbol,
java.lang.String units,
java.lang.String description,
java.lang.String format_string,
int type,
java.lang.String fixed_value)
name - should be a valid name as defined by
SDDSUtil.isValidNamesymbol - may be nullunits - may be nulldescription - may be nullformat_string - may be nulltype - valid values are:
1 for double2 for float3 for long4 for short5 for string6 for characterfixed_value - may be null-1 if an error occurs
public int defineParameter(java.lang.String name,
java.lang.String symbol,
java.lang.String units,
java.lang.String description,
java.lang.String format_string,
java.lang.String type,
java.lang.String fixed_value)
name - should be a valid name as defined by
SDDSUtil.isValidNamesymbol - may be nullunits - may be nulldescription - may be nullformat_string - may be nulltype - valid values are:
"double""float""long""short""string""character"fixed_value - may be null-1 if an error occurs
public int defineParameter(java.lang.String name,
int type)
name - should be a valid name as defined by
SDDSUtil.isValidNametype - valid values are:
1 for double2 for float3 for long4 for short5 for string6 for character-1 if an error occurs
public int defineParameter(java.lang.String name,
java.lang.String type)
name - should be a valid name as defined by
SDDSUtil.isValidNametype - valid values are:
"double""float""long""short""string""character"-1 if an error occurs
public boolean defineParameters(java.lang.String[] names,
java.lang.String[] symbols,
java.lang.String[] units,
java.lang.String[] descriptions,
java.lang.String[] format_strings,
int[] types,
java.lang.String[] fixed_values)
names - should be an array with valid names as defined by
SDDSUtil.isValidNamesymbols - elements may be nullunits - elements may be nulldescriptions - elements may be nullformat_strings - elements may be nulltypes - valid values or the elements are:
1 for double2 for float3 for long4 for short5 for string6 for characterfixed_values - elements may be nulltrue if successfulfalse if an error occurs
public boolean defineParameters(java.lang.String[] names,
java.lang.String[] symbols,
java.lang.String[] units,
java.lang.String[] descriptions,
java.lang.String[] format_strings,
java.lang.String[] types,
java.lang.String[] fixed_values)
names - should be an array with valid names as defined by
SDDSUtil.isValidNamesymbols - elements may be nullunits - elements may be nulldescriptions - elements may be nullformat_strings - elements may be nulltypes - valid values or the elements are:
"double""float""long""short""string""character"fixed_values - elements may be nulltrue if successfulfalse if an error occurs
public boolean defineParameters(java.lang.String[] names,
int[] types)
names - should be an array with valid names as defined by
SDDSUtil.isValidNametypes - valid values or the elements are:
1 for double2 for float3 for long4 for short5 for string6 for charactertrue if successfulfalse if an error occurs
public boolean defineParameters(java.lang.String[] names,
java.lang.String[] types)
names - should be an array with valid names as defined by
SDDSUtil.isValidNametypes - valid values or the elements are:
"double""float""long""short""string""character"true if successfulfalse if an error occurs
public int defineArray(java.lang.String name,
java.lang.String symbol,
java.lang.String units,
java.lang.String description,
java.lang.String format_string,
java.lang.String group_name,
int type,
int field_length,
int dimensions)
name - should be a valid name as defined by
SDDSUtil.isValidNamesymbol - may be nullunits - may be nulldescription - may be nullformat_string - may be nullgroup_name - may be nulltype - valid values are:
1 for double2 for float3 for long4 for short5 for string6 for characterfield_length - has no effect currentlydimensions - integer-1 if error occurs
public int defineArray(java.lang.String name,
java.lang.String symbol,
java.lang.String units,
java.lang.String description,
java.lang.String format_string,
java.lang.String group_name,
java.lang.String type,
int field_length,
int dimensions)
name - should be a valid name as defined by
SDDSUtil.isValidNamesymbol - may be nullunits - may be nulldescription - may be nullformat_string - may be nullgroup_name - may be nulltype - valid values are:
"double" for double"float" for float"long" for long"short" for short"string" for string"character" for characterfield_length - has no effect currentlydimensions - integer-1 if an error occurs
public int defineArray(java.lang.String name,
int type,
int dimensions)
name - should be a valid name as defined by
SDDSUtil.isValidNametype - valid values are:
"double" for double"float" for float"long" for long"short" for short"string" for string"character" for characterdimensions - integer-1 if an error occurs
public int defineArray(java.lang.String name,
java.lang.String type,
int dimensions)
name - should be a valid name as defined by
SDDSUtil.isValidNametype - valid values are:
1 for double2 for float3 for long4 for short5 for string6 for characterdimensions - integer-1 if an error occurs
public boolean defineArrays(java.lang.String[] names,
java.lang.String[] symbols,
java.lang.String[] units,
java.lang.String[] descriptions,
java.lang.String[] format_strings,
java.lang.String[] group_names,
int[] types,
int[] field_lengths,
int[] dimensions)
names - should be an array with valid names as defined by
SDDSUtil.isValidNamesymbols - elements may be nullunits - elements may be nulldescriptions - elements may be nullformat_strings - elements may be nullgroup_names - elements may be nulltypes - valid values or the elements are:
1 for double2 for float3 for long4 for short5 for string6 for characterfield_lengths - elements have no effect currentlydimensions - integer elementstrue if successfulfalse if an error occurs
public boolean defineArrays(java.lang.String[] names,
java.lang.String[] symbols,
java.lang.String[] units,
java.lang.String[] descriptions,
java.lang.String[] format_strings,
java.lang.String[] group_names,
java.lang.String[] types,
int[] field_lengths,
int[] dimensions)
names - should be an array with valid names as defined by
SDDSUtil.isValidNamesymbols - elements may be nullunits - elements may be nulldescriptions - elements may be nullformat_strings - elements may be nullgroup_names - elements may be nulltypes - valid values or the elements are:
"double""float""long""short""string""character"field_lengths - elements have no effect currentlydimensions - integer elementstrue if successfulfalse if an error occurs
public boolean defineArrays(java.lang.String[] names,
int[] types,
int[] dimensions)
names - should be an array with valid names as defined by
SDDSUtil.isValidNametypes - valid values or the elements are:
1 for double2 for float3 for long4 for short5 for string6 for characterdimensions - integer elementstrue if successfulfalse if an error occurs
public boolean defineArrays(java.lang.String[] names,
java.lang.String[] types,
int[] dimensions)
names - should be an array with valid names as defined by
SDDSUtil.isValidNametypes - valid values or the elements are:
"double""float""long""short""string""character"dimensions - integer elementstrue if successfulfalse if an error occurs
public int defineColumn(java.lang.String name,
java.lang.String symbol,
java.lang.String units,
java.lang.String description,
java.lang.String format_string,
int type,
int field_length)
name - should be a valid name as defined by
SDDSUtil.isValidNamesymbol - may be nullunits - may be nulldescription - may be nullformat_string - may be nulltype - valid values are:
1 for double2 for float3 for long4 for short5 for string6 for characterfield_length - has no effect currently-1 if an error occurs
public int defineColumn(java.lang.String name,
java.lang.String symbol,
java.lang.String units,
java.lang.String description,
java.lang.String format_string,
java.lang.String type,
int field_length)
name - should be a valid name as defined by
SDDSUtil.isValidNamesymbol - may be nullunits - may be nulldescription - may be nullformat_string - may be nulltype - valid values are:
"double""float""long""short""string""character"field_length - has no effect currently-1 if an error occurs
public int defineColumn(java.lang.String name,
int type)
name - should be a valid name as defined by
SDDSUtil.isValidNametype - valid values are:
1 for double2 for float3 for long4 for short5 for string6 for character-1 if an error occurs
public int defineColumn(java.lang.String name,
java.lang.String type)
name - should be a valid name as defined by
SDDSUtil.isValidNametype - valid values are:
"double""float""long""short""string""character"-1 if an error occurs
public boolean defineColumns(java.lang.String[] names,
java.lang.String[] symbols,
java.lang.String[] units,
java.lang.String[] descriptions,
java.lang.String[] format_strings,
int[] types,
int[] field_lengths)
names - should be an array with valid names as defined by
SDDSUtil.isValidNamesymbols - elements may be nullunits - elements may be nulldescriptions - elements may be nullformat_strings - elements may be nulltypes - valid values or the elements are:
1 for double2 for float3 for long4 for short5 for string6 for characterfixed_values - has no effect currentlytrue if successfulfalse if an error occurs
public boolean defineColumns(java.lang.String[] names,
java.lang.String[] symbols,
java.lang.String[] units,
java.lang.String[] descriptions,
java.lang.String[] format_strings,
java.lang.String[] types,
int[] field_lengths)
names - should be an array with valid names as defined by
SDDSUtil.isValidNamesymbols - elements may be nullunits - elements may be nulldescriptions - elements may be nullformat_strings - elements may be nulltypes - valid values or the elements are:
"double""float""long""short""string""character"fixed_values - has no effect currentlytrue if successfulfalse if an error occurs
public boolean defineColumns(java.lang.String[] names,
int[] types)
names - should be an array with valid names as defined by
SDDSUtil.isValidNametypes - valid values or the elements are:
1 for double2 for float3 for long4 for short5 for string6 for charactertrue if successfulfalse if an error occurs
public boolean defineColumns(java.lang.String[] names,
java.lang.String[] types)
names - should be an array with valid names as defined by
SDDSUtil.isValidNametypes - valid values or the elements are:
"double""float""long""short""string""character"true if successfulfalse if an error occurspublic int getParameterIndex(java.lang.String name)
name - name of an existing parameter-1 if the parameter does not existpublic int[] getParameterIndexes(java.lang.String[] names)
names - names of an existing parameters-1 if the parameter does not existpublic int getArrayIndex(java.lang.String name)
name - name of an existing array-1 if the array does not existpublic int[] getArrayIndexes(java.lang.String[] names)
names - names of an existing arrays-1 if the array does not existpublic int getColumnIndex(java.lang.String name)
name - name of an existing column-1 if the column does not existpublic int[] getColumnIndexes(java.lang.String[] names)
names - names of an existing columns-1 if the column does not exist
public boolean setParameter(java.lang.String name,
short[] values,
int startPage)
name - name of an existing parametervalues - array of valuesstartPage - page to start setting valuestrue if successful
false if index does not exist
public boolean setParameter(int parameterIndex,
short[] values,
int startPage)
parameterIndex - index of an existing parametervalues - array of valuesstartPage - page to start setting valuestrue if successful
false if index does not exist
public boolean setParameter(java.lang.String name,
int[] values,
int startPage)
name - name of an existing parametervalues - array of valuesstartPage - page to start setting valuestrue if successful
false if index does not exist
public boolean setParameter(int parameterIndex,
int[] values,
int startPage)
parameterIndex - index of an existing parametervalues - array of valuesstartPage - page to start setting valuestrue if successful
false if index does not exist
public boolean setParameter(java.lang.String name,
long[] values,
int startPage)
name - name of an existing parametervalues - array of valuesstartPage - page to start setting valuestrue if successful
false if index does not exist
public boolean setParameter(int parameterIndex,
long[] values,
int startPage)
parameterIndex - index of an existing parametervalues - array of valuesstartPage - page to start setting valuestrue if successful
false if index does not exist
public boolean setParameter(java.lang.String name,
float[] values,
int startPage)
name - name of an existing parametervalues - array of valuesstartPage - page to start setting valuestrue if successful
false if index does not exist
public boolean setParameter(int parameterIndex,
float[] values,
int startPage)
parameterIndex - index of an existing parametervalues - array of valuesstartPage - page to start setting valuestrue if successful
false if index does not exist
public boolean setParameter(java.lang.String name,
double[] values,
int startPage)
name - name of an existing parametervalues - array of valuesstartPage - page to start setting valuestrue if successful
false if index does not exist
public boolean setParameter(int parameterIndex,
double[] values,
int startPage)
parameterIndex - index of an existing parametervalues - array of valuesstartPage - page to start setting valuestrue if successful
false if index does not exist
public boolean setParameter(java.lang.String name,
java.lang.String[] values,
int startPage)
name - name of an existing parametervalues - array of valuesstartPage - page to start setting valuestrue if successful
false if index does not exist
public boolean setParameter(int parameterIndex,
java.lang.String[] values,
int startPage)
parameterIndex - index of an existing parametervalues - array of valuesstartPage - page to start setting valuestrue if successful
false if index does not exist
public boolean setParameter(java.lang.String name,
char[] values,
int startPage)
name - name of an existing parametervalues - array of valuesstartPage - page to start setting valuestrue if successful
false if index does not exist
public boolean setParameter(int parameterIndex,
char[] values,
int startPage)
parameterIndex - index of an existing parametervalues - array of valuesstartPage - page to start setting valuestrue if successful
false if index does not exist
public boolean setParameter(java.lang.String name,
short value,
int page)
name - name of an existing parametervalue - value to be setpage - page to set valuetrue if successful
false if index does not exist
public boolean setParameter(int parameterIndex,
short value,
int page)
parameterIndex - index of an existing parametervalue - value to be setpage - page to set valuetrue if successful
false if index does not exist
public boolean setParameter(java.lang.String name,
int value,
int page)
name - name of an existing parametervalue - value to be setpage - page to set valuetrue if successful
false if index does not exist
public boolean setParameter(int parameterIndex,
int value,
int page)
parameterIndex - index of an existing parametervalue - value to be setpage - page to set valuetrue if successful
false if index does not exist
public boolean setParameter(java.lang.String name,
long value,
int page)
name - name of an existing parametervalue - value to be setpage - page to set valuetrue if successful
false if index does not exist
public boolean setParameter(int parameterIndex,
long value,
int page)
parameterIndex - index of an existing parametervalue - value to be setpage - page to set valuetrue if successful
false if index does not exist
public boolean setParameter(java.lang.String name,
float value,
int page)
name - name of an existing parametervalue - value to be setpage - page to set valuetrue if successful
false if index does not exist
public boolean setParameter(int parameterIndex,
float value,
int page)
parameterIndex - index of an existing parametervalue - value to be setpage - page to set valuetrue if successful
false if index does not exist
public boolean setParameter(java.lang.String name,
double value,
int page)
name - name of an existing parametervalue - value to be setpage - page to set valuetrue if successful
false if index does not exist
public boolean setParameter(int parameterIndex,
double value,
int page)
parameterIndex - index of an existing parametervalue - value to be setpage - page to set valuetrue if successful
false if index does not exist
public boolean setParameter(java.lang.String name,
java.lang.String value,
int page)
name - name of an existing parametervalue - value to be setpage - page to set valuetrue if successful
false if index does not exist
public boolean setParameter(int parameterIndex,
java.lang.String value,
int page)
parameterIndex - index of an existing parametervalue - value to be setpage - page to set valuetrue if successful
false if index does not exist
public boolean setParameter(java.lang.String name,
char value,
int page)
name - name of an existing parametervalue - value to be setpage - page to set valuetrue if successful
false if index does not exist
public boolean setParameter(int parameterIndex,
char value,
int page)
parameterIndex - index of an existing parametervalue - value to be setpage - page to set valuetrue if successful
false if index does not exist
public boolean setParameters(java.lang.String[] names,
short[] values,
int page)
names - names of an existing parametersvalues - array of values to be setpage - page to set valuestrue if successful
false if an error occurs
public boolean setParameters(int[] parameterIndexes,
short[] values,
int page)
parameterIndexes - indexes of an existing parametersvalues - array of values to be setpage - page to set valuestrue if successful
false if an error occurs
public boolean setParameters(java.lang.String[] names,
int[] values,
int page)
names - names of an existing parametersvalues - array of values to be setpage - page to set valuestrue if successful
false if an error occurs
public boolean setParameters(int[] parameterIndexes,
int[] values,
int page)
parameterIndexes - indexes of an existing parametersvalues - array of values to be setpage - page to set valuestrue if successful
false if an error occurs
public boolean setParameters(java.lang.String[] names,
long[] values,
int page)
names - names of an existing parametersvalues - array of values to be setpage - page to set valuestrue if successful
false if an error occurs
public boolean setParameters(int[] parameterIndexes,
long[] values,
int page)
parameterIndexes - indexes of an existing parametersvalues - array of values to be setpage - page to set valuestrue if successful
false if an error occurs
public boolean setParameters(java.lang.String[] names,
float[] values,
int page)
names - names of an existing parametersvalues - array of values to be setpage - page to set valuestrue if successful
false if an error occurs
public boolean setParameters(int[] parameterIndexes,
float[] values,
int page)
parameterIndexes - indexes of an existing parametersvalues - array of values to be setpage - page to set valuestrue if successful
false if an error occurs
public boolean setParameters(java.lang.String[] names,
double[] values,
int page)
names - names of an existing parametersvalues - array of values to be setpage - page to set valuestrue if successful
false if an error occurs
public boolean setParameters(int[] parameterIndexes,
double[] values,
int page)
parameterIndexes - indexes of an existing parametersvalues - array of values to be setpage - page to set valuestrue if successful
false if an error occurs
public boolean setParameters(java.lang.String[] names,
java.lang.String[] values,
int page)
names - names of an existing parametersvalues - array of values to be setpage - page to set valuestrue if successful
false if an error occurs
public boolean setParameters(int[] parameterIndexes,
java.lang.String[] values,
int page)
parameterIndexes - indexes of an existing parametersvalues - array of values to be setpage - page to set valuestrue if successful
false if an error occurs
public boolean setParameters(java.lang.String[] names,
char[] values,
int page)
names - names of an existing parametersvalues - array of values to be setpage - page to set valuestrue if successful
false if an error occurs
public boolean setParameters(int[] parameterIndexes,
char[] values,
int page)
parameterIndexes - indexes of an existing parametersvalues - array of values to be setpage - page to set valuestrue if successful
false if an error occurs
public boolean setParameters(java.lang.String[] names,
short[][] values,
int startPage)
names - names of an existing parametersvalues - two dimensional array of values to be setstartPage - page to start setting the valuestrue if successful
false if an error occurs
public boolean setParameters(int[] parameterIndexes,
short[][] values,
int startPage)
parameterIndexes - indexes of an existing parametersvalues - two dimensional array of values to be setstartPage - page to start setting the valuestrue if successful
false if an error occurs
public boolean setParameters(java.lang.String[] names,
int[][] values,
int startPage)
names - names of an existing parametersvalues - two dimensional array of values to be setstartPage - page to start setting the valuestrue if successful
false if an error occurs
public boolean setParameters(int[] parameterIndexes,
int[][] values,
int startPage)
parameterIndexes - indexes of an existing parametersvalues - two dimensional array of values to be setstartPage - page to start setting the valuestrue if successful
false if an error occurs
public boolean setParameters(java.lang.String[] names,
long[][] values,
int startPage)
names - names of an existing parametersvalues - two dimensional array of values to be setstartPage - page to start setting the valuestrue if successful
false if an error occurs
public boolean setParameters(int[] parameterIndexes,
long[][] values,
int startPage)
parameterIndexes - indexes of an existing parametersvalues - two dimensional array of values to be setstartPage - page to start setting the valuestrue if successful
false if an error occurs
public boolean setParameters(java.lang.String[] names,
float[][] values,
int startPage)
names - names of an existing parametersvalues - two dimensional array of values to be setstartPage - page to start setting the valuestrue if successful
false if an error occurs
public boolean setParameters(int[] parameterIndexes,
float[][] values,
int startPage)
parameterIndexes - indexes of an existing parametersvalues - two dimensional array of values to be setstartPage - page to start setting the valuestrue if successful
false if an error occurs
public boolean setParameters(java.lang.String[] names,
double[][] values,
int startPage)
names - names of an existing parametersvalues - two dimensional array of values to be setstartPage - page to start setting the valuestrue if successful
false if an error occurs
public boolean setParameters(int[] parameterIndexes,
double[][] values,
int startPage)
parameterIndexes - indexes of an existing parametersvalues - two dimensional array of values to be setstartPage - page to start setting the valuestrue if successful
false if an error occurs
public boolean setParameters(java.lang.String[] names,
java.lang.String[][] values,
int startPage)
names - names of an existing parametersvalues - two dimensional array of values to be setstartPage - page to start setting the valuestrue if successful
false if an error occurs
public boolean setParameters(int[] parameterIndexes,
java.lang.String[][] values,
int startPage)
parameterIndexes - indexes of an existing parametersvalues - two dimensional array of values to be setstartPage - page to start setting the valuestrue if successful
false if an error occurs
public boolean setParameters(java.lang.String[] names,
char[][] values,
int startPage)
names - names of an existing parametersvalues - two dimensional array of values to be setstartPage - page to start setting the valuestrue if successful
false if an error occurs
public boolean setParameters(int[] parameterIndexes,
char[][] values,
int startPage)
parameterIndexes - indexes of an existing parametersvalues - two dimensional array of values to be setstartPage - page to start setting the valuestrue if successful
false if an error occurs
public boolean setArray(java.lang.String name,
short[] values,
int page)
name - name of an existing arrayvalues - array of values to be setpage - page to set the valuestrue if successful
false if an error occurs
public boolean setArray(int arrayIndex,
short[] values,
int page)
name - name of an existing arrayvalues - array of values to be setpage - page to set the valuestrue if successful
false if an error occurs
public boolean setArray(java.lang.String name,
int[] values,
int page)
name - name of an existing arrayvalues - array of values to be setpage - page to set the valuestrue if successful
false if an error occurs
public boolean setArray(int arrayIndex,
int[] values,
int page)
name - name of an existing arrayvalues - array of values to be setpage - page to set the valuestrue if successful
false if an error occurs
public boolean setArray(java.lang.String name,
long[] values,
int page)
name - name of an existing arrayvalues - array of values to be setpage - page to set the valuestrue if successful
false if an error occurs
public boolean setArray(int arrayIndex,
long[] values,
int page)
name - name of an existing arrayvalues - array of values to be setpage - page to set the valuestrue if successful
false if an error occurs
public boolean setArray(java.lang.String name,
float[] values,
int page)
name - name of an existing arrayvalues - array of values to be setpage - page to set the valuestrue if successful
false if an error occurs
public boolean setArray(int arrayIndex,
float[] values,
int page)
name - name of an existing arrayvalues - array of values to be setpage - page to set the valuestrue if successful
false if an error occurs
public boolean setArray(java.lang.String name,
double[] values,
int page)
name - name of an existing arrayvalues - array of values to be setpage - page to set the valuestrue if successful
false if an error occurs
public boolean setArray(int arrayIndex,
double[] values,
int page)
name - name of an existing arrayvalues - array of values to be setpage - page to set the valuestrue if successful
false if an error occurs
public boolean setArray(java.lang.String name,
java.lang.String[] values,
int page)
name - name of an existing arrayvalues - array of values to be setpage - page to set the valuestrue if successful
false if an error occurs
public boolean setArray(int arrayIndex,
java.lang.String[] values,
int page)
name - name of an existing arrayvalues - array of values to be setpage - page to set the valuestrue if successful
false if an error occurs
public boolean setArray(java.lang.String name,
char[] values,
int page)
name - name of an existing arrayvalues - array of values to be setpage - page to set the valuestrue if successful
false if an error occurs
public boolean setArray(int arrayIndex,
char[] values,
int page)
name - name of an existing arrayvalues - array of values to be setpage - page to set the valuestrue if successful
false if an error occurs
public boolean setColumn(java.lang.String name,
short[] values,
int page)
name - name of an existing columnvalues - array of values to be setpage - page to set the valuestrue if successful
false if an error occurs
public boolean setColumn(java.lang.String name,
short[] values,
int page,
int startRow)
name - name of an existing columnvalues - array of values to be setpage - page to set the valuesstartRow - row to start setting the valuestrue if successful
false if an error occurs
public boolean setColumn(int columnIndex,
short[] values,
int page)
columnIndex - index of an existing columnvalues - array of values to be setpage - page to set the valuestrue if successful
false if an error occurs
public boolean setColumn(int columnIndex,
short[] values,
int page,
int startRow)
columnIndex - index of an existing columnvalues - array of values to be setpage - page to set the valuesstartRow - row to start setting the valuestrue if successful
false if an error occurs
public boolean setColumn(java.lang.String name,
int[] values,
int page)
name - name of an existing columnvalues - array of values to be setpage - page to set the valuestrue if successful
false if an error occurs
public boolean setColumn(java.lang.String name,
int[] values,
int page,
int startRow)
name - name of an existing columnvalues - array of values to be setpage - page to set the valuesstartRow - row to start setting the valuestrue if successful
false if an error occurs
public boolean setColumn(int columnIndex,
int[] values,
int page)
columnIndex - index of an existing columnvalues - array of values to be setpage - page to set the valuestrue if successful
false if an error occurs
public boolean setColumn(int columnIndex,
int[] values,
int page,
int startRow)
columnIndex - index of an existing columnvalues - array of values to be setpage - page to set the valuesstartRow - row to start setting the valuestrue if successful
false if an error occurs
public boolean setColumn(java.lang.String name,
long[] values,
int page)
name - name of an existing columnvalues - array of values to be setpage - page to set the valuestrue if successful
false if an error occurs
public boolean setColumn(java.lang.String name,
long[] values,
int page,
int startRow)
name - name of an existing columnvalues - array of values to be setpage - page to set the valuesstartRow - row to start setting the valuestrue if successful
false if an error occurs
public boolean setColumn(int columnIndex,
long[] values,
int page)
columnIndex - index of an existing columnvalues - array of values to be setpage - page to set the valuestrue if successful
false if an error occurs
public boolean setColumn(int columnIndex,
long[] values,
int page,
int startRow)
columnIndex - index of an existing columnvalues - array of values to be setpage - page to set the valuesstartRow - row to start setting the valuestrue if successful
false if an error occurs
public boolean setColumn(java.lang.String name,
float[] values,
int page)
name - name of an existing columnvalues - array of values to be setpage - page to set the valuestrue if successful
false if an error occurs
public boolean setColumn(java.lang.String name,
float[] values,
int page,
int startRow)
name - name of an existing columnvalues - array of values to be setpage - page to set the valuesstartRow - row to start setting the valuestrue if successful
false if an error occurs
public boolean setColumn(int columnIndex,
float[] values,
int page)
columnIndex - index of an existing columnvalues - array of values to be setpage - page to set the valuestrue if successful
false if an error occurs
public boolean setColumn(int columnIndex,
float[] values,
int page,
int startRow)
columnIndex - index of an existing columnvalues - array of values to be setpage - page to set the valuesstartRow - row to start setting the valuestrue if successful
false if an error occurs
public boolean setColumn(java.lang.String name,
double[] values,
int page)
name - name of an existing columnvalues - array of values to be setpage - page to set the valuestrue if successful
false if an error occurs
public boolean setColumn(java.lang.String name,
double[] values,
int page,
int startRow)
name - name of an existing columnvalues - array of values to be setpage - page to set the valuesstartRow - row to start setting the valuestrue if successful
false if an error occurs
public boolean setColumn(int columnIndex,
double[] values,
int page)
columnIndex - index of an existing columnvalues - array of values to be setpage - page to set the valuestrue if successful
false if an error occurs
public boolean setColumn(int columnIndex,
double[] values,
int page,
int startRow)
columnIndex - index of an existing columnvalues - array of values to be setpage - page to set the valuesstartRow - row to start setting the valuestrue if successful
false if an error occurs
public boolean setColumn(java.lang.String name,
java.lang.String[] values,
int page)
name - name of an existing columnvalues - array of values to be setpage - page to set the valuestrue if successful
false if an error occurs
public boolean setColumn(java.lang.String name,
java.lang.String[] values,
int page,
int startRow)
name - name of an existing columnvalues - array of values to be setpage - page to set the valuesstartRow - row to start setting the valuestrue if successful
false if an error occurs
public boolean setColumn(int columnIndex,
java.lang.String[] values,
int page)
columnIndex - index of an existing columnvalues - array of values to be setpage - page to set the valuestrue if successful
false if an error occurs
public boolean setColumn(int columnIndex,
java.lang.String[] values,
int page,
int startRow)
columnIndex - index of an existing columnvalues - array of values to be setpage - page to set the valuesstartRow - row to start setting the valuestrue if successful
false if an error occurs
public boolean setColumn(java.lang.String name,
char[] values,
int page)
name - name of an existing columnvalues - array of values to be setpage - page to set the valuestrue if successful
false if an error occurs
public boolean setColumn(java.lang.String name,
char[] values,
int page,
int startRow)
name - name of an existing columnvalues - array of values to be setpage - page to set the valuesstartRow - row to start setting the valuestrue if successful
false if an error occurs
public boolean setColumn(int columnIndex,
char[] values,
int page)
columnIndex - index of an existing columnvalues - array of values to be setpage - page to set the valuestrue if successful
false if an error occurs
public boolean setColumn(int columnIndex,
char[] values,
int page,
int startRow)
columnIndex - index of an existing columnvalues - array of values to be setpage - page to set the valuesstartRow - row to start setting the valuestrue if successful
false if an error occurs
public boolean setColumnElement(java.lang.String name,
short value,
int page,
int row)
name - name of an existing columnvalue - value to be setpage - page to set the valuesrow - row to set the valuestrue if successful
false if an error occurs
public boolean setColumnElement(int columnIndex,
short value,
int page,
int row)
columIndex - index of an existing columnvalue - value to be setpage - page to set the valuesrow - row to set the valuestrue if successful
false if an error occurs
public boolean setColumnElement(java.lang.String name,
int value,
int page,
int row)
name - name of an existing columnvalue - value to be setpage - page to set the valuesrow - row to set the valuestrue if successful
false if an error occurs
public boolean setColumnElement(int columnIndex,
int value,
int page,
int row)
columIndex - index of an existing columnvalue - value to be setpage - page to set the valuesrow - row to set the valuestrue if successful
false if an error occurs
public boolean setColumnElement(java.lang.String name,
long value,
int page,
int row)
name - name of an existing columnvalue - value to be setpage - page to set the valuesrow - row to set the valuestrue if successful
false if an error occurs
public boolean setColumnElement(int columnIndex,
long value,
int page,
int row)
columIndex - index of an existing columnvalue - value to be setpage - page to set the valuesrow - row to set the valuestrue if successful
false if an error occurs
public boolean setColumnElement(java.lang.String name,
float value,
int page,
int row)
name - name of an existing columnvalue - value to be setpage - page to set the valuesrow - row to set the valuestrue if successful
false if an error occurs
public boolean setColumnElement(int columnIndex,
float value,
int page,
int row)
columIndex - index of an existing columnvalue - value to be setpage - page to set the valuesrow - row to set the valuestrue if successful
false if an error occurs
public boolean setColumnElement(java.lang.String name,
double value,
int page,
int row)
name - name of an existing columnvalue - value to be setpage - page to set the valuesrow - row to set the valuestrue if successful
false if an error occurs
public boolean setColumnElement(int columnIndex,
double value,
int page,
int row)
columIndex - index of an existing columnvalue - value to be setpage - page to set the valuesrow - row to set the valuestrue if successful
false if an error occurs
public boolean setColumnElement(java.lang.String name,
java.lang.String value,
int page,
int row)
name - name of an existing columnvalue - value to be setpage - page to set the valuesrow - row to set the valuestrue if successful
false if an error occurs
public boolean setColumnElement(int columnIndex,
java.lang.String value,
int page,
int row)
columIndex - index of an existing columnvalue - value to be setpage - page to set the valuesrow - row to set the valuestrue if successful
false if an error occurs
public boolean setColumnElement(java.lang.String name,
char value,
int page,
int row)
name - name of an existing columnvalue - value to be setpage - page to set the valuesrow - row to set the valuestrue if successful
false if an error occurs
public boolean setColumnElement(int columnIndex,
char value,
int page,
int row)
columIndex - index of an existing columnvalue - value to be setpage - page to set the valuesrow - row to set the valuestrue if successful
false if an error occurspublic boolean writeLayout()
true if the layout was successfully writtenfalse if an error occuredpublic boolean writeDescription()
true if the description was successfully writtenfalse if an error occuredpublic boolean writeParameterHeaders()
true if the headers were successfully writtenfalse if an error occuredpublic boolean writeParameterHeader(int index)
index - index of an existing parametertrue if the header was successfully writtenfalse if an error occuredpublic boolean writeArrayHeaders()
true if the headers were successfully writtenfalse if an error occurredpublic boolean writeArrayHeader(int index)
index - index of an existing arraytrue if the header was successfully writtenfalse if an error occuredpublic boolean writeColumnHeaders()
true if the headers were successfully writtenfalse if an error occuredpublic boolean writeColumnHeader(int index)
index - index of an existing columntrue if the header was successfully writtenfalse if an error occuredpublic boolean writePages()
true if successfulfalse if an error occurspublic int pageCount()
public boolean writePages(int startPage,
int endPage)
startPage - first page to writeendPage - last page to writetrue if successfulfalse if an error occurs
public void deleteRow(int page,
int row)
page - the page of the column, must be greater then 0row - the row of the column, must be greater then 0public int getRowCount(int page)
page - page of sdds filepublic boolean writePage(int page)
page - page to writetrue if successfulfalse if an error occurs
public boolean addColumnElement(int column,
java.lang.String v)
column - Column number (first column is 1)v - value to add to the columntrue if successfulfalse if an error occurs
public boolean addColumnElement(java.lang.String name,
java.lang.String v)
column - Column namev - value to add to the columntrue if successfulfalse if an error occurs
public boolean addColumnElement(int column,
char v)
column - Column number (first column is 1)v - value to add to the columntrue if successfulfalse if an error occurs
public boolean addColumnElement(java.lang.String name,
char v)
column - Column namev - value to add to the columntrue if successfulfalse if an error occurs
public boolean addColumnElement(int column,
double v)
column - Column number (first column is 1)v - value to add to the columntrue if successfulfalse if an error occurs
public boolean addColumnElement(java.lang.String name,
double v)
column - Column namev - value to add to the columntrue if successfulfalse if an error occurs
public boolean addColumnElement(int column,
float v)
column - Column number (first column is 1)v - value to add to the columntrue if successfulfalse if an error occurs
public boolean addColumnElement(java.lang.String name,
float v)
column - Column namev - value to add to the columntrue if successfulfalse if an error occurs
public boolean addColumnElement(int column,
long v)
column - Column number (first column is 1)v - value to add to the columntrue if successfulfalse if an error occurs
public boolean addColumnElement(java.lang.String name,
long v)
column - Column namev - value to add to the columntrue if successfulfalse if an error occurs
public boolean addColumnElement(int column,
short v)
column - Column number (first column is 1)v - value to add to the columntrue if successfulfalse if an error occurs
public boolean addColumnElement(java.lang.String name,
short v)
column - Column namev - value to add to the columntrue if successfulfalse if an error occurspublic boolean writeRow()
true if successfulfalse if an error occurspublic void setError(java.lang.String error_text)
error_text - error messagepublic java.lang.String getErrors()
public void printErrors()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||