peakml.io.chemistry
Class MoleculeIO

java.lang.Object
  extended by peakml.io.chemistry.MoleculeIO

public class MoleculeIO
extends java.lang.Object


Constructor Summary
MoleculeIO()
           
 
Method Summary
static java.util.HashMap<java.lang.String,Molecule> parseTxt(java.io.InputStream input)
           
static java.util.HashMap<java.lang.String,Molecule> parseXml(java.io.InputStream input)
           
static void writeXml(java.util.HashMap<java.lang.String,Molecule> molecules, java.io.OutputStream out)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MoleculeIO

public MoleculeIO()
Method Detail

parseTxt

public static java.util.HashMap<java.lang.String,Molecule> parseTxt(java.io.InputStream input)
                                                             throws java.io.IOException
Parameters:
in -
Returns:
Throws:
java.io.IOException

parseXml

public static java.util.HashMap<java.lang.String,Molecule> parseXml(java.io.InputStream input)
                                                             throws java.io.IOException,
                                                                    domsax.XmlParserException
Parameters:
input -
Returns:
Throws:
java.io.IOException
domsax.XmlParserException

writeXml

public static void writeXml(java.util.HashMap<java.lang.String,Molecule> molecules,
                            java.io.OutputStream out)
                     throws java.io.IOException
Parameters:
molecules -
out -
Throws:
java.io.IOException