|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object prefuse.data.io.AbstractTableReader prefuse.data.io.AbstractTextTableReader prefuse.data.io.DelimitedTextTableReader
public class DelimitedTextTableReader
TableReader for delimited text files, such as tab-delimited or pipe-delimited text files. Such files typically list one row of table data per line of the file, using a designated character such as a tab (\t) or pipe (|) to demarcate different data columns. This class allows you to select any regular expression as the column delimiter.
Constructor Summary | |
---|---|
DelimitedTextTableReader()
Create a new DelimitedTextTableReader for reading tab-delimited files using a default parser factory. |
|
DelimitedTextTableReader(ParserFactory parserFactory)
Create a new DelimitedTextTableReader for reading tab-delimited files. |
|
DelimitedTextTableReader(java.lang.String delimiterRegex)
Create a new DelimitedTextTableReader using a default parser factory. |
|
DelimitedTextTableReader(java.lang.String delimiterRegex,
ParserFactory pf)
Create a new DelimitedTextTableReader. |
Method Summary | |
---|---|
protected void |
read(java.io.InputStream is,
TableReadListener trl)
Scans the input stream, making call backs for each encountered entry on the provided TextReadListener. |
Methods inherited from class prefuse.data.io.AbstractTextTableReader |
---|
getColumnNames, getDefaultHeader, readTable, setHasHeader |
Methods inherited from class prefuse.data.io.AbstractTableReader |
---|
readTable, readTable, readTable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DelimitedTextTableReader()
public DelimitedTextTableReader(ParserFactory parserFactory)
parserFactory
- the ParserFactory to use for parsing text strings
into table values.public DelimitedTextTableReader(java.lang.String delimiterRegex)
delimiterRegex
- a regular expression string indicating the
delimiter to use to separate column valuespublic DelimitedTextTableReader(java.lang.String delimiterRegex, ParserFactory pf)
delimiterRegex
- a regular expression string indicating the
delimiter to use to separate column valuespf
- the ParserFactory to use for parsing text strings
into table values.Method Detail |
---|
protected void read(java.io.InputStream is, TableReadListener trl) throws java.io.IOException, DataParseException
AbstractTextTableReader
read
in class AbstractTextTableReader
is
- the InputStream to readtrl
- the TextReadListener that will receive callbacks
java.io.IOException
DataParseException
AbstractTextTableReader.read(java.io.InputStream, prefuse.data.io.TableReadListener)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |