org.genepattern.io.expr.mage
Class MAGEMLWriter

java.lang.Object
  extended byorg.genepattern.io.expr.mage.MAGEMLWriter
All Implemented Interfaces:
IExpressionDataWriter

public class MAGEMLWriter
extends java.lang.Object
implements IExpressionDataWriter

Writes MAGE-ML documents.


Constructor Summary
MAGEMLWriter()
           
 
Method Summary
 java.lang.String checkFileExtension(java.lang.String filename)
          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 setExternalDataFilenameURI(java.lang.String externalDataFilenameURI)
           
 void write(IExpressionData expressionData, java.io.OutputStream os)
          Writes an IExpressionData instance to a stream.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MAGEMLWriter

public MAGEMLWriter()
Method Detail

checkFileExtension

public java.lang.String checkFileExtension(java.lang.String filename)
Description copied from interface: IExpressionDataWriter
Appends the correct file extension to the pathname if it does not exist.

Specified by:
checkFileExtension in interface IExpressionDataWriter
Parameters:
filename - a pathname string
Returns:
The corrected pathname

write

public void write(IExpressionData expressionData,
                  java.io.OutputStream os)
           throws java.io.IOException
Description copied from interface: IExpressionDataWriter
Writes an IExpressionData instance to a stream.

Specified by:
write in interface IExpressionDataWriter
Parameters:
expressionData - the data
os - the output stream
Throws:
java.io.IOException - if an I/O error occurs during writing.

setExternalDataFilenameURI

public void setExternalDataFilenameURI(java.lang.String externalDataFilenameURI)

getFormatName

public java.lang.String getFormatName()
Description copied from interface: IExpressionDataWriter
Returns a String identifying the format that this writer encodes.

Specified by:
getFormatName in interface IExpressionDataWriter
Returns:
the format name, as a String.


Hosted by docs.bugaco.com