3132333435363738394041424344
// prepare data byte[] data = CSV_DATA.getBytes(); InputStream is = new ByteArrayInputStream(data); // parse data CSVTableReader ctr = new CSVTableReader(); Table t = null; try { t = ctr.readTable(is); } catch ( DataIOException e ) { e.printStackTrace(); fail("Data Read Exception"); }
258259260261262263264265266267268
// tie into PrefuseConfig?? // CSV ff = new SimpleFileFilter("csv", "Comma Separated Values (CSV) File (*.csv)", new CSVTableReader()); ff.addExtension("gz"); jfc.setFileFilter(ff); // Pipe-Delimited ff = new SimpleFileFilter("txt",