public class AsciiStarTable extends StreamStarTable
Here are the rules:
null
" (unquoted) represents the null valueBoolean
,
Short
Integer
,
Long
,
Float
,
Double
,
String
END
Constructor and Description |
---|
AsciiStarTable(DataSource datsrc)
Constructor with default options.
|
AsciiStarTable(DataSource datsrc,
int maxSample)
Constructor with configuration option.
|
Modifier and Type | Method and Description |
---|---|
protected RowEvaluator.Metadata |
obtainMetadata()
Obtains column metadata for this table, probably by reading through
the rows once and using a RowEvaluator.
|
protected java.util.List<java.lang.String> |
readRow(java.io.PushbackInputStream in)
Reads the next row of data from a given stream.
|
getColumnCount, getColumnInfo, getInputStream, getRowCount, getRowSequence, init
checkedLongToInt, close, getCell, getColumnAuxDataInfos, getName, getParameters, getRow, getRowAccess, getRowSplittable, getURL, isRandom, setName, setParameters, setURL
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getParameterByName, setParameter
public AsciiStarTable(DataSource datsrc) throws TableFormatException, java.io.IOException
datsrc
- the data source containing the table textTableFormatException
- if the input stream doesn't appear to
form a ASCII-format tablejava.io.IOException
- if some I/O error occurspublic AsciiStarTable(DataSource datsrc, int maxSample) throws TableFormatException, java.io.IOException
datsrc
- the data source containing the table textmaxSample
- maximum number of rows sampled to determine
column data types; if <=0, all rows are sampledTableFormatException
- if the input stream doesn't appear to
form a ASCII-format tablejava.io.IOException
- if some I/O error occursprotected RowEvaluator.Metadata obtainMetadata() throws TableFormatException, java.io.IOException
StreamStarTable
obtainMetadata
in class StreamStarTable
TableFormatException
- if the data doesn't represent this
kind of tablejava.io.IOException
- if I/O error is encounteredprotected java.util.List<java.lang.String> readRow(java.io.PushbackInputStream in) throws java.io.IOException
readRow
in class StreamStarTable
in
- input streamnull
for end of streamTableFormatException
- if the data doesn't represent this
kind of tablejava.io.IOException
- if I/O error is encountered