Class KEGG2_XML_Reader
java.lang.Object
org.graffiti.plugin.io.AbstractInputSerializer
de.ipk_gatersleben.ag_nw.graffiti.plugins.ios.importers.kegg_xml.KEGG2_XML_Reader
- All Implemented Interfaces:
InputSerializer
,Serializer
public class KEGG2_XML_Reader extends AbstractInputSerializer
- Author:
- Christian Klukas (c) 2004-2006 IPK-Gatersleben
-
Constructor Summary
Constructors Constructor Description KEGG2_XML_Reader()
-
Method Summary
Modifier and Type Method Description String[]
getExtensions()
The file extensions the serializer can read or write.String[]
getFileTypeDescriptions()
The file type descriptions of the files the serializer can read or write.void
read(InputStream in, Graph g)
Reads in a graph from the given input stream.void
read(Reader reader, Graph g)
void
read(String filename, Graph g)
Reads in a graph from the given filename.boolean
validFor(InputStream reader)
Methods inherited from class org.graffiti.plugin.io.AbstractInputSerializer
read, read
-
Constructor Details
-
KEGG2_XML_Reader
public KEGG2_XML_Reader()
-
-
Method Details
-
read
Description copied from class:AbstractInputSerializer
Reads in a graph from the given filename.- Specified by:
read
in interfaceInputSerializer
- Overrides:
read
in classAbstractInputSerializer
- Parameters:
filename
- The name of the file to read the graph from.g
- The graph to add the newly read graph to.- Throws:
IOException
- If an IO error occurs.
-
read
Description copied from class:AbstractInputSerializer
Reads in a graph from the given input stream.- Specified by:
read
in interfaceInputSerializer
- Specified by:
read
in classAbstractInputSerializer
- Parameters:
in
- The input stream to read the graph from.g
- The graph to add the newly read graph to.- Throws:
IOException
- If an IO error occurs.
-
getExtensions
Description copied from interface:Serializer
The file extensions the serializer can read or write.- Returns:
- DOCUMENT ME!
-
getFileTypeDescriptions
Description copied from interface:Serializer
The file type descriptions of the files the serializer can read or write.- Returns:
- DOCUMENT ME!
-
read
- Throws:
Exception
-
validFor
- Specified by:
validFor
in interfaceInputSerializer
- Overrides:
validFor
in classAbstractInputSerializer
- Parameters:
reader
- Warning: The Inputstream-Length may be limited in size, e.g. may only provide access to the first 5000 bytes.- Returns:
-