annas.graph.export
Class XMLExporter<N,A extends ArcInterface<N>>

java.lang.Object
  extended by annas.graph.export.XMLExporter<N,A>
Type Parameters:
N - Node type
A - Arc type
All Implemented Interfaces:
Exporter<N,A>

public class XMLExporter<N,A extends ArcInterface<N>>
extends java.lang.Object
implements Exporter<N,A>

Exports the graph to xml

Author:
Sam Wilson

Constructor Summary
XMLExporter()
           
XMLExporter(java.io.OutputStream ops)
           
 
Method Summary
 void export(GraphInterface<N,A> graph)
          Exports the provided graph.
 void export(java.io.OutputStream pw, GraphInterface<N,A> graph)
          Exports the provided graph.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLExporter

public XMLExporter()

XMLExporter

public XMLExporter(java.io.OutputStream ops)
Method Detail

export

public void export(java.io.OutputStream pw,
                   GraphInterface<N,A> graph)
Exports the provided graph.

Specified by:
export in interface Exporter<N,A extends ArcInterface<N>>
Parameters:
pw - Stream to output the graph to
graph - Graph to export

export

public void export(GraphInterface<N,A> graph)
Exports the provided graph.

Specified by:
export in interface Exporter<N,A extends ArcInterface<N>>
Parameters:
graph - Graph to export