Cytoscape 2.6.2 (c) 2006,2007 ISB, MSKCC, UCSD

cytoscape.data.readers
Class GMLParser

java.lang.Object
  extended by cytoscape.data.readers.GMLParser

public class GMLParser
extends Object

The purpose of hte class is to translate gml into an object tree, and print out an object treee into GML


Constructor Summary
GMLParser(InputStream stream)
          Make a stream tokenizer out of the given this file and read in the file
GMLParser(StreamTokenizer tokenizer)
          Constructor has to initialize the relevenat regular expression patterns
GMLParser(String file)
          Make a stream tokenizer out of the given this file and read in the file
 
Method Summary
 Vector parseList()
          A list consists of zero or more paris of keys and values
static void printList(List list, Writer writer)
          Public method to print out a given object tree(list) using the supplied filewriter
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GMLParser

public GMLParser(StreamTokenizer tokenizer)
Constructor has to initialize the relevenat regular expression patterns


GMLParser

public GMLParser(String file)
          throws IOException,
                 Exception
Make a stream tokenizer out of the given this file and read in the file

Throws:
IOException
Exception

GMLParser

public GMLParser(InputStream stream)
          throws IOException,
                 Exception
Make a stream tokenizer out of the given this file and read in the file

Throws:
IOException
Exception
Method Detail

printList

public static void printList(List list,
                             Writer writer)
                      throws IOException
Public method to print out a given object tree(list) using the supplied filewriter

Throws:
IOException

parseList

public Vector parseList()
                 throws IOException,
                        ParseException
A list consists of zero or more paris of keys and values

Throws:
IOException
ParseException

www.cytoscape.org