|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.objectAccess.FixedTableRecord
public class FixedTableRecord
Implements a fixed-width table record.
Method Summary | |
---|---|
void |
clear()
Clears the content of the TableRecord object. |
int |
findColumn(String name)
Gets the integer index of a field with the given name (1-relative). |
BigInteger |
getBigInteger(int index)
Gets the field value as a Java BigInteger. |
BigInteger |
getBigInteger(String name)
Gets the field value as a Java BigInteger. |
byte |
getByte(int index)
Gets the byte value of a field given the index. |
byte |
getByte(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(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(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(String name)
Gets the integer value of a field given the name. |
long |
getLong(int index)
Gets the long value of a field given the index. |
long |
getLong(String name)
Gets the long value of a field given the name. |
byte[] |
getRecordValue()
Returns a byte array that stores the record value. |
short |
getShort(int index)
Gets the short value of a field given the index. |
short |
getShort(String name)
Gets the short value of a field given the name. |
String |
getString(int index)
Gets the string value of a field given the index. |
String |
getString(String name)
Gets the string value of a field given the name. |
void |
setByte(int index,
byte value)
Sets one byte value to a field given the index. |
void |
setByte(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(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(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(String name,
int value)
Sets four bytes containing the integer value to a field given the name. |
void |
setLong(int index,
long value)
Sets eight bytes containing the long value to the record given the field index. |
void |
setLong(String name,
long value)
Sets eight bytes containing the long value to the record given the field name. |
void |
setRecordValue(byte[] value)
Sets the record value. |
void |
setShort(int index,
short value)
Sets two bytes containing the short value to a field given the index. |
void |
setShort(String name,
short value)
Sets two bytes containing the short value to a field given the index. |
void |
setString(int index,
String value)
Sets a string value to a field given the index. |
void |
setString(String value)
Sets a String value to the record at the current offset. |
void |
setString(String name,
String value)
Sets a string value to a field given the name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int findColumn(String name)
TableRecord
findColumn
in interface TableRecord
name
- the name of a field
public short getShort(int index)
TableRecord
getShort
in interface TableRecord
index
- the column index (1-relative)
public short getShort(String name)
TableRecord
getShort
in interface TableRecord
name
- the field name
public byte getByte(int index)
TableRecord
getByte
in interface TableRecord
index
- the field index (1-relative)
public byte getByte(String name)
TableRecord
getByte
in interface TableRecord
name
- the field name
public long getLong(int index)
TableRecord
It throws NumberFormatException if the number is out of range when converting from ASCII_Integer to long.
getLong
in interface TableRecord
index
- the field index (1-relative)
public long getLong(String name)
TableRecord
getLong
in interface TableRecord
name
- the field name
public int getInt(String name)
TableRecord
getInt
in interface TableRecord
name
- the field name
public int getInt(int index)
TableRecord
It throws NumberFormatException if the number is out of range when converting from ASCII_Integer to int.
getInt
in interface TableRecord
index
- the field index (1-relative)
public BigInteger getBigInteger(String name)
TableRecord
getBigInteger
in interface TableRecord
name
- the name of the field
BigInteger
public BigInteger getBigInteger(int index)
TableRecord
getBigInteger
in interface TableRecord
index
- the field index
BigInteger
public double getDouble(String name)
TableRecord
getDouble
in interface TableRecord
name
- the field name
public double getDouble(int index)
TableRecord
If the number is out of range when converting from ASCII_Real to double, the method returns Double.POSITIVE_INFINITY or Double.NEGATIVE_INFINITY.
getDouble
in interface TableRecord
index
- the field index (1-relative)
public float getFloat(String name)
TableRecord
getFloat
in interface TableRecord
name
- the field name
public float getFloat(int index)
TableRecord
If the number is out of range when converting from ASCII_Real to float, the method returns Float.POSITIVE_INFINITY or Float.NEGATIVE_INFINITY.
getFloat
in interface TableRecord
index
- the field index (1-relative)
public String getString(String name)
TableRecord
getString
in interface TableRecord
name
- the field name
public String getString(int index)
TableRecord
getString
in interface TableRecord
index
- the field index (1-relative)
public void setString(int index, String value)
TableRecord
setString
in interface TableRecord
index
- the field index (1-relative)value
- a string valuepublic void setString(String name, String value)
TableRecord
setString
in interface TableRecord
name
- the field namevalue
- a string valuepublic void setString(String value)
TableRecord
setString
in interface TableRecord
value
- a String valuepublic void setInt(int index, int value)
TableRecord
setInt
in interface TableRecord
index
- the field index (1-relative)value
- an integer valuepublic void setInt(String name, int value)
TableRecord
setInt
in interface TableRecord
name
- the field namevalue
- an integer valuepublic void setDouble(int index, double value)
TableRecord
setDouble
in interface TableRecord
index
- the field index (1-relative)value
- a double valuepublic void setDouble(String name, double value)
TableRecord
setDouble
in interface TableRecord
name
- the field namevalue
- a double valuepublic void setFloat(int index, float value)
TableRecord
setFloat
in interface TableRecord
index
- the field index (1-relative)value
- a float valuepublic void setFloat(String name, float value)
TableRecord
setFloat
in interface TableRecord
name
- the field namevalue
- a float valuepublic void setLong(int index, long value)
TableRecord
setLong
in interface TableRecord
index
- the field index (1-relative)value
- a long valuepublic void setLong(String name, long value)
TableRecord
setLong
in interface TableRecord
name
- the field namevalue
- a long valuepublic void setShort(int index, short value)
TableRecord
setShort
in interface TableRecord
index
- the field index (1-relative)value
- a short valuepublic void setShort(String name, short value)
TableRecord
setShort
in interface TableRecord
name
- the field namevalue
- a short valuepublic void setByte(int index, byte value)
TableRecord
setByte
in interface TableRecord
index
- the field index (1-relative)value
- a byte valuepublic void setByte(String name, byte value)
TableRecord
setByte
in interface TableRecord
name
- the field namevalue
- a byte valuepublic void clear()
TableRecord
TableRecord
object.
clear
in interface TableRecord
public void setRecordValue(byte[] value)
value
- byte array that contains the record valuepublic byte[] getRecordValue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |