Cytoscape 2.8.0 API

cytoscape.data.readers
Class GMLParser

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

public class GMLParser
extends Object

The purpose of this class is to translate GML into an object tree, and print out an object tree 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
 List<KeyValue> parseList()
          A list consists of zero or more paris of keys and values
protected static void printList(List<KeyValue> list, String indent, Writer writer)
          Protected recurive helper method to print out an object tree
static void printList(List<KeyValue> list, Writer writer)
          Public method to print out a given object tree(list) using the supplied filewriter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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<KeyValue> list,
                             Writer writer)
                      throws IOException
Public method to print out a given object tree(list) using the supplied filewriter

Throws:
IOException

printList

protected static void printList(List<KeyValue> list,
                                String indent,
                                Writer writer)
                         throws IOException
Protected recurive helper method to print out an object tree

Throws:
IOException

parseList

public List<KeyValue> parseList()
                         throws IOException,
                                ParseException
A list consists of zero or more paris of keys and values

Throws:
IOException
ParseException

Cytoscape 2.8.0 API

Copyright 2010 Cytoscape Consortium. All rights reserved.