dk.brics.xmlgraph.converter
Class Unserializer

java.lang.Object
  extended by dk.brics.xmlgraph.converter.Unserializer

public class Unserializer
extends Object

Production of XML graphs from serialized XML representation.


Constructor Summary
Unserializer()
          Constructs a new converter.
 
Method Summary
 XMLGraph convert(Document d, AutomatonProvider automaton_provider)
          Constructs an XML graph from its serialized XML representation.
 XMLGraph load(URL url)
          Loads XML graph from XML file and automata from serialized automata files.
 XMLGraph load(ZipFile zip)
          Loads XML graph (including automata) from ZIP file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Unserializer

public Unserializer()
Constructs a new converter.

Method Detail

convert

public XMLGraph convert(Document d,
                        AutomatonProvider automaton_provider)
                 throws IOException
Constructs an XML graph from its serialized XML representation.

Parameters:
d - XML document
automaton_provider - provides automata for automata names
Returns:
XML graph
Throws:
IOException - if an I/O error occurs

load

public XMLGraph load(URL url)
              throws IOException
Loads XML graph from XML file and automata from serialized automata files.

Parameters:
url - URL of directory containing the files (xg.xml for the XML graph and .aut files for the automata).
Returns:
XML graph
Throws:
IOException - if I/O error occurs

load

public XMLGraph load(ZipFile zip)
              throws IOException
Loads XML graph (including automata) from ZIP file.

Parameters:
zip - zip file
Returns:
XML graph
Throws:
IOException - if I/O error occurs


Copyright © 2005-2010 Anders Møller.