org.autoplot.ascii.AsciiTableDataSource
DataSource for reading data in ASCII files, where each record is
one line of the file, and each record has the same number of fields.
This reads in each record and splits on the delimiter, which is typically
guessed by examining the first 5 viable records. This also supports
combining times that are in several fields.
This also handles true CSV files, where a quoted field may contain a
newline character.
Last, a three or four column ASCII file containing two ISO8601 strings
for the first two columns is automatically treated as an "events list",
a list of named intervals.
AsciiTableDataSource( java.net.URI uri )
Creates a new instance of AsciiTableDataSource
PARAM_INTERVAL_TAG
getDataSet
getDataSet( ProgressMonitor mon ) → QDataSet
Parameters
mon - a ProgressMonitor
Returns:
org.das2.qds.QDataSet
[search for examples]
[view on GitHub]
[view on old javadoc]
getMetadata
getMetadata( ProgressMonitor mon ) → java.util.Map
Parameters
mon - a ProgressMonitor
Returns:
java.util.Map
[search for examples]
[view on GitHub]
[view on old javadoc]
parseColumns
parseColumns( String s, int fieldCount ) → int[]
return a list of column names, supporting:
- field1,field3,field5
- field1,field3-field5
- field1,field3:field5 exclusive
Parameters
s - a String
fieldCount - an int
Returns:
an int[]
See Also:
parseRangeStr(java.lang.String, int)
[search for examples]
[view on GitHub]
[view on old javadoc]