org.broad.igv.tdf
Class TDFWriter

java.lang.Object
  extended by org.broad.igv.tdf.TDFWriter

public class TDFWriter
extends java.lang.Object

Assumptions

Little endian is used throughout Strings are null terminated ascii (single byte

Author:
Thomas Abeel, jrobinso

Constructor Summary
TDFWriter(java.io.File f, java.lang.String genomeId, java.lang.String trackType, java.lang.String trackLine, java.lang.String[] trackNames, java.util.Collection<WindowFunction> windowFunctions, boolean compressed)
           
 
Method Summary
 void closeFile()
          Write out the group and dataset index and close the underlying file.
 TDFDataset createDataset(java.lang.String name, TDFDataset.DataType dataType, int tileWidth, int nTiles)
           
 TDFGroup createGroup(java.lang.String name)
           
 TDFGroup getGroup(java.lang.String name)
           
 TDFGroup getRootGroup()
           
 void writeTile(java.lang.String dsId, int tileNumber, TDFTile tile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TDFWriter

public TDFWriter(java.io.File f,
                 java.lang.String genomeId,
                 java.lang.String trackType,
                 java.lang.String trackLine,
                 java.lang.String[] trackNames,
                 java.util.Collection<WindowFunction> windowFunctions,
                 boolean compressed)
Method Detail

closeFile

public void closeFile()
Write out the group and dataset index and close the underlying file.


getGroup

public TDFGroup getGroup(java.lang.String name)

getRootGroup

public TDFGroup getRootGroup()

createGroup

public TDFGroup createGroup(java.lang.String name)

createDataset

public TDFDataset createDataset(java.lang.String name,
                                TDFDataset.DataType dataType,
                                int tileWidth,
                                int nTiles)

writeTile

public void writeTile(java.lang.String dsId,
                      int tileNumber,
                      TDFTile tile)
               throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2007-2011 - Thomas Abeel - All Rights Reserved. SourceForge.netLogo