edu.mssm.crover.tables.readers
Class TIWebMinesetReader
java.lang.Object
edu.mssm.crover.tables.readers.TIWebMinesetReader
public class TIWebMinesetReader
- extends Object
Reads SGI's MineSet ascii table format. The following types are supported :
string, float, double, int, boolean. Booleans are read as ints. Enumerations
are not supported at the moment (one could define an enumeration class that
represent the value as an int and has a toString() method that returns the
symbol associated with each valid value). Options are ignored.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TIWebMinesetReader
public TIWebMinesetReader()
getShortName
public String getShortName()
getDescription
public String getDescription()
read
public static Table read(Reader schema,
InputStream data)
throws UnsupportedFormatException,
SyntaxErrorException
- Throws:
UnsupportedFormatException
SyntaxErrorException
read
public static Table read(Reader schema,
Reader data)
throws UnsupportedFormatException,
SyntaxErrorException
- Throws:
UnsupportedFormatException
SyntaxErrorException
addColumns
public static void addColumns(Table table,
Reader schema)
throws IOException,
SyntaxErrorException
- Parse the Mineset schema file to extract the column names and types. Add
these columns to the table. Parses only the content of the input {}
block.
- Throws:
IOException
SyntaxErrorException
addData
public static void addData(Table table,
Reader data)
throws SyntaxErrorException,
IOException
- Throws:
SyntaxErrorException
IOException
parseColumnHeader
protected static void parseColumnHeader(Table t,
String identifier,
String line,
Class type,
int linenumber)
throws SyntaxErrorException
- Throws:
SyntaxErrorException
main
public static void main(String[] args)
Copyright © 2001-2009 Institute for Computational Biomedicine, All Rights Reserved.