public class TableDelimitedAdapter extends java.lang.Object implements TableAdapter
Constructor and Description |
---|
TableDelimitedAdapter(TableDelimited table)
Creates a new instance for a particular table.
|
Modifier and Type | Method and Description |
---|---|
FieldDescription |
getField(int index)
Returns the field at a given index.
|
int |
getFieldCount()
Gets the number of fields in each record.
|
char |
getFieldDelimiter()
Gets the field delimiter.
|
FieldDescription[] |
getFields()
Gets the definitions of fields from the table.
|
java.util.List<FieldDescription> |
getFieldsList()
Gets the definitions of fields from the table.
|
int |
getMaximumRecordLength()
Gets the maximum length of each record.
|
long |
getOffset()
Gets the offset into the data file where the table starts.
|
long |
getRecordCount()
Gets the number of records in the table.
|
java.lang.String |
getRecordDelimiter()
Gets the record delimiter.
|
int |
getRecordLength()
Gets the length of each record.
|
public TableDelimitedAdapter(TableDelimited table) throws InvalidTableException
table
- the tableInvalidTableException
public long getRecordCount()
TableAdapter
getRecordCount
in interface TableAdapter
public int getFieldCount()
TableAdapter
getFieldCount
in interface TableAdapter
public FieldDescription getField(int index)
TableAdapter
getField
in interface TableAdapter
index
- the field indexpublic FieldDescription[] getFields()
TableAdapter
getFields
in interface TableAdapter
public long getOffset()
TableAdapter
getOffset
in interface TableAdapter
public int getRecordLength()
TableAdapter
getRecordLength
in interface TableAdapter
public java.lang.String getRecordDelimiter()
TableAdapter
getRecordDelimiter
in interface TableAdapter
public char getFieldDelimiter()
TableAdapter
getFieldDelimiter
in interface TableAdapter
public java.util.List<FieldDescription> getFieldsList()
TableAdapter
getFieldsList
in interface TableAdapter
public int getMaximumRecordLength()
TableAdapter
getMaximumRecordLength
in interface TableAdapter
Copyright © 2023 Planetary Data System. All rights reserved.