public interface TableRecord
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the content of the
TableRecord object. |
int |
findColumn(java.lang.String name)
Gets the integer index of a field with the given name (1-relative).
|
java.math.BigInteger |
getBigInteger(int index)
Gets the field value as a Java BigInteger.
|
java.math.BigInteger |
getBigInteger(java.lang.String name)
Gets the field value as a Java BigInteger.
|
boolean |
getBoolean(int index)
Gets the boolean value of a field given the index.
|
boolean |
getBoolean(java.lang.String name)
Gets the boolean value of a field given the index.
|
byte |
getByte(int index)
Gets the byte value of a field given the index.
|
byte |
getByte(java.lang.String name)
Gets the byte value of a field given the name.
|
double |
getDouble(int index)
Gets the double value of a field given the index.
|
double |
getDouble(java.lang.String name)
Gets the double value of a field given the name.
|
float |
getFloat(int index)
Gets the float value of a field given the index.
|
float |
getFloat(java.lang.String name)
Gets the float value of a field given the name.
|
int |
getInt(int index)
Gets the integer value of a field given the index.
|
int |
getInt(java.lang.String name)
Gets the integer value of a field given the name.
|
RecordLocation |
getLocation() |
long |
getLong(int index)
Gets the long value of a field given the index.
|
long |
getLong(java.lang.String name)
Gets the long value of a field given the name.
|
short |
getShort(int index)
Gets the short value of a field given the index.
|
short |
getShort(java.lang.String name)
Gets the short value of a field given the name.
|
java.lang.String |
getString(int index)
Gets the string value of a field given the index.
|
java.lang.String |
getString(int index,
java.nio.charset.Charset charset)
Gets the string value of a field given the index.
|
java.lang.String |
getString(java.lang.String name)
Gets the string value of a field given the name.
|
java.lang.String |
getString(java.lang.String name,
java.nio.charset.Charset charset)
Gets the string value of a field given the name.
|
int |
length() |
void |
setByte(int index,
byte value)
Sets one byte value to a field given the index.
|
void |
setByte(java.lang.String name,
byte value)
Sets one byte value to a field given the name.
|
void |
setDouble(int index,
double value)
Sets eight bytes containing the double value to a field given the index.
|
void |
setDouble(java.lang.String name,
double value)
Sets eight bytes containing the double value to a field given the name.
|
void |
setFloat(int index,
float value)
Sets four bytes containing the float value to a field given the index.
|
void |
setFloat(java.lang.String name,
float value)
Sets four bytes containing the float value to a field given the name.
|
void |
setInt(int index,
int value)
Sets four bytes containing the integer value to a field given the index.
|
void |
setInt(java.lang.String name,
int value)
Sets four bytes containing the integer value to a field given the name.
|
void |
setLocation(RecordLocation location)
Sets the record location.
|
void |
setLong(int index,
long value)
Sets eight bytes containing the long value to the record given the field index.
|
void |
setLong(java.lang.String name,
long value)
Sets eight bytes containing the long value to the record given the field name.
|
void |
setShort(int index,
short value)
Sets two bytes containing the short value to a field given the index.
|
void |
setShort(java.lang.String name,
short value)
Sets two bytes containing the short value to a field given the index.
|
void |
setString(int index,
java.lang.String value)
Sets a string value to a field given the index.
|
void |
setString(java.lang.String value)
Sets a String value to the record at the current offset.
|
void |
setString(java.lang.String name,
java.lang.String value)
Sets a string value to a field given the name.
|
int findColumn(java.lang.String name)
name
- the name of a fieldboolean getBoolean(java.lang.String name)
name
- the field namejava.lang.IllegalArgumentException
- if the value in the field is not a valid boolean valueboolean getBoolean(int index)
index
- the field indexjava.lang.IllegalArgumentException
- if the value in the field is not a valid boolean valueshort getShort(int index)
index
- the column index (1-relative)java.lang.IllegalArgumentException
- If cannot convert the number to shortshort getShort(java.lang.String name)
name
- the field namebyte getByte(int index)
index
- the field index (1-relative)java.lang.IllegalArgumentException
- If cannot convert the number to bytebyte getByte(java.lang.String name)
name
- the field namelong getLong(int index)
It throws NumberFormatException if the number is out of range when converting from ASCII_Integer to long.
index
- the field index (1-relative)java.lang.IllegalArgumentException
- If cannot convert the number to longjava.lang.NumberFormatException
- If the number is out of range for a longlong getLong(java.lang.String name)
name
- the field namejava.math.BigInteger getBigInteger(java.lang.String name)
name
- the name of the fieldBigInteger
java.math.BigInteger getBigInteger(int index)
index
- the field indexBigInteger
int getInt(java.lang.String name)
name
- the field nameint getInt(int index)
It throws NumberFormatException if the number is out of range when converting from ASCII_Integer to int.
index
- the field index (1-relative)java.lang.IllegalArgumentException
- If cannot convert the number to intjava.lang.NumberFormatException
- If the number is out of range for an intdouble getDouble(java.lang.String name)
name
- the field namedouble getDouble(int index)
If the number is out of range when converting from ASCII_Real to double, the method returns Double.POSITIVE_INFINITY or Double.NEGATIVE_INFINITY.
index
- the field index (1-relative)java.lang.IllegalArgumentException
- If cannot convert the number to doublefloat getFloat(java.lang.String name)
name
- the field namefloat getFloat(int index)
If the number is out of range when converting from ASCII_Real to float, the method returns Float.POSITIVE_INFINITY or Float.NEGATIVE_INFINITY.
index
- the field index (1-relative)java.lang.IllegalArgumentException
- If cannot convert the number to floatjava.lang.String getString(java.lang.String name)
name
- the field namejava.lang.String getString(java.lang.String name, java.nio.charset.Charset charset)
name
- the field namecharset
- the charset to use.java.lang.String getString(int index)
index
- the field index (1-relative)java.lang.IllegalArgumentException
- If data type is not supportedjava.lang.String getString(int index, java.nio.charset.Charset charset)
index
- the field index (1-relative)charset
- The charset to use.java.lang.IllegalArgumentException
- If data type is not supportedvoid setString(int index, java.lang.String value)
index
- the field index (1-relative)value
- a string valuejava.lang.IllegalArgumentException
- If the size of the value is greater than the field lengthvoid setString(java.lang.String name, java.lang.String value)
name
- the field namevalue
- a string valuejava.lang.IllegalArgumentException
- If the size of the value is greater than field lengthvoid setString(java.lang.String value)
value
- a String valuevoid setInt(int index, int value)
index
- the field index (1-relative)value
- an integer valuevoid setInt(java.lang.String name, int value)
name
- the field namevalue
- an integer valuevoid setDouble(int index, double value)
index
- the field index (1-relative)value
- a double valuevoid setDouble(java.lang.String name, double value)
name
- the field namevalue
- a double valuevoid setFloat(int index, float value)
index
- the field index (1-relative)value
- a float valuevoid setFloat(java.lang.String name, float value)
name
- the field namevalue
- a float valuevoid setShort(int index, short value)
index
- the field index (1-relative)value
- a short valuevoid setShort(java.lang.String name, short value)
name
- the field namevalue
- a short valuevoid setByte(int index, byte value)
index
- the field index (1-relative)value
- a byte valuevoid setByte(java.lang.String name, byte value)
name
- the field namevalue
- a byte valuevoid setLong(int index, long value)
index
- the field index (1-relative)value
- a long valuevoid setLong(java.lang.String name, long value)
name
- the field namevalue
- a long valuevoid clear()
TableRecord
object.int length()
RecordLocation getLocation()
void setLocation(RecordLocation location)
location
- the record location.Copyright © 2023 Planetary Data System. All rights reserved.