edu.upenn.gloDB.io
Class FileIO

java.lang.Object
  extended by edu.upenn.gloDB.io.FileIO

public class FileIO
extends java.lang.Object

Import and export utilities.

Version:
$Id: FileIO.java,v 1.16.2.8 2007/03/01 21:17:33 fisher Exp $

Field Summary
static int FASTA
           
static int GENBANK
           
static int GFF
           
static int GLODB
           
private static java.util.HashSet sequenceFileTypes
          This HashSet is used to store references to SequenceFile types.
private static java.util.HashSet trackFileTypes
          This HashSet is used to store references to TrackFile types.
 
Constructor Summary
FileIO()
           
 
Method Summary
static void addSequenceFileType(SequenceFile sequenceFileType)
          Adds the Seqeunce file type to the list of possible types.
static void addTrackFileType(TrackFile trackFileType)
          Adds the Track file type to the list of possible types.
static java.lang.String convertConstant(int val)
          Convert from the integer constant value to a string equivalent.
static DataFile getDataType(int type, java.lang.String desc)
          Returns the DataFile based on the file type and type description.
static java.util.HashSet getDataTypes(int type)
          Returns the DataFiles based on the file type.
static SequenceFile getSequenceFileType(int id)
          Returns the SequenceFile based on the file type ID.
static SequenceFile getSequenceFileType(java.lang.String desc)
          Returns the SequenceFile based on the file type description.
static java.util.HashSet getSequenceFileTypes()
          Returns the set of Sequence file types.
static TrackFile getTrackFileType(int id)
          Returns the TrackFile based on the file type ID.
static TrackFile getTrackFileType(java.lang.String desc)
          Returns the TrackFile based on the file type description.
static java.util.HashSet getTrackFileTypes()
          Returns the set of Track file types.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GLODB

public static final int GLODB
See Also:
Constant Field Values

FASTA

public static final int FASTA
See Also:
Constant Field Values

GFF

public static final int GFF
See Also:
Constant Field Values

GENBANK

public static final int GENBANK
See Also:
Constant Field Values

trackFileTypes

private static java.util.HashSet trackFileTypes
This HashSet is used to store references to TrackFile types.


sequenceFileTypes

private static java.util.HashSet sequenceFileTypes
This HashSet is used to store references to SequenceFile types.

Constructor Detail

FileIO

public FileIO()
Method Detail

getTrackFileTypes

public static java.util.HashSet getTrackFileTypes()
Returns the set of Track file types.


getSequenceFileTypes

public static java.util.HashSet getSequenceFileTypes()
Returns the set of Sequence file types.


convertConstant

public static java.lang.String convertConstant(int val)
Convert from the integer constant value to a string equivalent.


getDataTypes

public static java.util.HashSet getDataTypes(int type)
Returns the DataFiles based on the file type.


getDataType

public static DataFile getDataType(int type,
                                   java.lang.String desc)
Returns the DataFile based on the file type and type description.


addTrackFileType

public static void addTrackFileType(TrackFile trackFileType)
Adds the Track file type to the list of possible types.


getTrackFileType

public static TrackFile getTrackFileType(java.lang.String desc)
Returns the TrackFile based on the file type description.


getTrackFileType

public static TrackFile getTrackFileType(int id)
Returns the TrackFile based on the file type ID.


addSequenceFileType

public static void addSequenceFileType(SequenceFile sequenceFileType)
Adds the Seqeunce file type to the list of possible types.


getSequenceFileType

public static SequenceFile getSequenceFileType(java.lang.String desc)
Returns the SequenceFile based on the file type description.


getSequenceFileType

public static SequenceFile getSequenceFileType(int id)
Returns the SequenceFile based on the file type ID.




Copyright 2012 Stephen Fisher and Junhyong Kim, University of Pennsylvania. All Rights Reserved.