
net.sf.jtables.table.impl.DoubleTableReader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jtables Show documentation
Show all versions of jtables Show documentation
Simple and lightweight framework to work with tables and table based files such as CSV and other (tab)-delimited files.
package net.sf.jtables.table.impl;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.Reader;
import net.sf.jtables.table.AbstractTableReader;
import net.sf.jtables.table.AnnotatedMutableTable;
public class DoubleTableReader extends AbstractTableReader {
public DoubleTableReader(File file, boolean columnIds, boolean rowIds,
String delim) throws IOException {
super(file, columnIds, rowIds, delim);
}
public DoubleTableReader(File file, boolean columnIds, boolean rowIds)
throws IOException {
super(file, columnIds, rowIds);
}
public DoubleTableReader(InputStream stream, boolean columnIds,
boolean rowIds, String delim) throws IOException {
super(stream, columnIds, rowIds, delim);
}
public DoubleTableReader(InputStream stream, boolean columnIds,
boolean rowIds) throws IOException {
super(stream, columnIds, rowIds);
}
public DoubleTableReader(Reader reader, boolean columnIds, boolean rowIds,
String delim) throws IOException {
super(reader, columnIds, rowIds, delim);
}
public DoubleTableReader(Reader reader, boolean columnIds, boolean rowIds)
throws IOException {
super(reader, columnIds, rowIds);
}
@Override
protected AnnotatedMutableTable getInstance() {
return new AnnotatedMutableTableImpl();
}
@Override
protected Double parse(String s) throws NumberFormatException {
return Double.parseDouble(s);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy