TissueInfo API 20091124110011

edu.mssm.crover.tables.readers
Class TIWebMinesetReader

java.lang.Object
  extended by 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.


Constructor Summary
TIWebMinesetReader()
           
 
Method Summary
static void addColumns(Table table, Reader schema)
          Parse the Mineset schema file to extract the column names and types.
static void addData(Table table, Reader data)
           
 String getDescription()
           
 String getShortName()
           
static void main(String[] args)
           
protected static void parseColumnHeader(Table t, String identifier, String line, Class type, int linenumber)
           
static Table read(Reader schema, InputStream data)
           
static Table read(Reader schema, Reader data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TIWebMinesetReader

public TIWebMinesetReader()
Method Detail

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)

TissueInfo API 20091124110011

Copyright © 2001-2009 Institute for Computational Biomedicine, All Rights Reserved.