org.genepattern.io.expr.cls
Class ClsWriter

java.lang.Object
  extended byorg.genepattern.io.expr.cls.ClsWriter

public class ClsWriter
extends java.lang.Object

Writer for cls files. CLS files are simple files created to load class information into GeneCluster. These files use spaces to separate the fields.


Constructor Summary
ClsWriter()
           
 
Method Summary
 java.lang.String checkFileExtension(java.lang.String pathname)
           
 void write(ClassVector cv, java.io.OutputStream os)
          Writes an ClassVector instance to a file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClsWriter

public ClsWriter()
Method Detail

checkFileExtension

public java.lang.String checkFileExtension(java.lang.String pathname)

write

public void write(ClassVector cv,
                  java.io.OutputStream os)
           throws java.io.IOException
Writes an ClassVector instance to a file. The correct file extension will be added to the file name if it does not already exist.

Parameters:
cv - the class vector
os - the output stream
Throws:
java.io.IOException - if an I/O error occurs during writing