Package org.snpeff.fileIterator
Class TableFile
java.lang.Object
org.snpeff.fileIterator.TableFile
- All Implemented Interfaces:
Serializable
Load a table from a file. The table is loaded into an arbitrary object having
arrays to hold the data.
- Author:
- pcingola
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Assign values parse from 'line' into array elements indexed by 'idx'protected void
Map field names to Field objectsvoid
load()
Load all data into memoryvoid
Save this object to a binary file (using Java serialization)int
size()
Array sizetoString
(int index) Return line number 'index' as a string
-
Field Details
-
FIELD_NAME_SEPARATOR
protected static final char FIELD_NAME_SEPARATOR- See Also:
-
size
protected int size -
verbose
protected boolean verbose -
hasTitle
protected boolean hasTitle -
fileName
-
separator
-
fieldStr
-
fieldNames
-
fieldByName
-
-
Constructor Details
-
TableFile
public TableFile(int size) -
TableFile
-
TableFile
-
-
Method Details
-
assign
Assign values parse from 'line' into array elements indexed by 'idx'- Parameters:
line
-idx
-
-
initFields
protected void initFields()Map field names to Field objects -
load
public void load()Load all data into memory -
save
Save this object to a binary file (using Java serialization)- Parameters:
binaryFile
-
-
size
public int size()Array size- Returns:
-
toString
Return line number 'index' as a string- Parameters:
index
-- Returns:
-