edu.mssm.crover.tables.readers
Class MinesetTableReader
java.lang.Object
|
+--edu.mssm.crover.tables.readers.MinesetTableReader
- public class MinesetTableReader
- extends java.lang.Object
Reads SGI's MineSet ascii table format.
The following types are supported : string, float, double, int.
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.
|
Method Summary |
static void |
addColumns(Table table,
java.io.Reader schema)
Parse the Mineset schema file to extract the column names
and types. |
static void |
addData(Table table,
java.io.Reader data)
|
java.lang.String |
getDescription()
|
java.lang.String |
getShortName()
|
static void |
main(java.lang.String[] args)
|
protected static void |
parseColumnHeader(Table t,
java.lang.String identifier,
java.lang.String line,
java.lang.Class type,
int linenumber)
|
static Table |
read(java.io.Reader schema,
java.io.InputStream data)
|
static Table |
read(java.io.Reader schema,
java.io.Reader data)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MinesetTableReader
public MinesetTableReader()
getShortName
public java.lang.String getShortName()
getDescription
public java.lang.String getDescription()
read
public static Table read(java.io.Reader schema,
java.io.InputStream data)
throws UnsupportedFormatException,
SyntaxErrorException
UnsupportedFormatException
SyntaxErrorException
read
public static Table read(java.io.Reader schema,
java.io.Reader data)
throws UnsupportedFormatException,
SyntaxErrorException
UnsupportedFormatException
SyntaxErrorException
addColumns
public static void addColumns(Table table,
java.io.Reader schema)
throws java.io.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.
java.io.IOException
SyntaxErrorException
addData
public static void addData(Table table,
java.io.Reader data)
throws SyntaxErrorException,
java.io.IOException
SyntaxErrorException
java.io.IOException
parseColumnHeader
protected static void parseColumnHeader(Table t,
java.lang.String identifier,
java.lang.String line,
java.lang.Class type,
int linenumber)
throws SyntaxErrorException
SyntaxErrorException
main
public static void main(java.lang.String[] args)
Copyright @ 2003 Mount Sinai School of Medicine. All Rights Reserved.