org.genepattern.io.expr
Interface IExpressionDataWriter

All Known Implementing Classes:
GctWriter, MAGEMLWriter, OdfDatasetWriter, ResWriter, StanfordTxtWriter

public interface IExpressionDataWriter

Interface for expression data writers.


Method Summary
 java.lang.String checkFileExtension(java.lang.String pathname)
          Appends the correct file extension to the pathname if it does not exist.
 java.lang.String getFormatName()
          Returns a String identifying the format that this writer encodes.
 void write(IExpressionData data, java.io.OutputStream os)
          Writes an IExpressionData instance to a stream.
 

Method Detail

write

public void write(IExpressionData data,
                  java.io.OutputStream os)
           throws java.io.IOException
Writes an IExpressionData instance to a stream.

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

getFormatName

public java.lang.String getFormatName()
Returns a String identifying the format that this writer encodes.

Returns:
the format name, as a String.

checkFileExtension

public java.lang.String checkFileExtension(java.lang.String pathname)
Appends the correct file extension to the pathname if it does not exist.

Parameters:
pathname - a pathname string
Returns:
The corrected pathname


Hosted by docs.bugaco.com