- java.lang.Object
-
- org.jgrapht.nio.BaseEventDrivenImporter<java.lang.String,Pair<java.lang.String,java.lang.String>>
-
- org.jgrapht.nio.dot.DOTEventDrivenImporter
-
- All Implemented Interfaces:
EventDrivenImporter<java.lang.String,Pair<java.lang.String,java.lang.String>>
public class DOTEventDrivenImporter extends BaseEventDrivenImporter<java.lang.String,Pair<java.lang.String,java.lang.String>> implements EventDrivenImporter<java.lang.String,Pair<java.lang.String,java.lang.String>>
Import a graph from a DOT file.For a description of the format see http://en.wikipedia.org/wiki/DOT_language and http://www.graphviz.org/doc/info/lang.html
The importer notifies interested parties using consumers.
- Author:
- Dimitrios Michail
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_GRAPH_ID_KEY
Default key used for the graph ID.
-
Constructor Summary
Constructors Constructor Description DOTEventDrivenImporter()
Constructs a new importer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
importInput(java.io.Reader in)
Import a graph-
Methods inherited from class org.jgrapht.nio.BaseEventDrivenImporter
addEdgeAttributeConsumer, addEdgeConsumer, addEdgeCountConsumer, addGraphAttributeConsumer, addImportEventConsumer, addVertexAttributeConsumer, addVertexConsumer, addVertexCountConsumer, notifyEdge, notifyEdgeAttribute, notifyEdgeCount, notifyGraphAttribute, notifyImportEvent, notifyVertex, notifyVertexAttribute, notifyVertexCount, removeEdgeAttributeConsumer, removeEdgeConsumer, removeEdgeCountConsumer, removeGraphAttributeConsumer, removeImportEventConsumer, removeVertexAttributeConsumer, removeVertexConsumer, removeVertexCountConsumer
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jgrapht.nio.EventDrivenImporter
addEdgeAttributeConsumer, addEdgeConsumer, addEdgeCountConsumer, addGraphAttributeConsumer, addImportEventConsumer, addVertexAttributeConsumer, addVertexConsumer, addVertexCountConsumer, importInput, importInput, removeEdgeAttributeConsumer, removeEdgeConsumer, removeEdgeCountConsumer, removeGraphAttributeConsumer, removeImportEventConsumer, removeVertexAttributeConsumer, removeVertexConsumer, removeVertexCountConsumer
-
-
-
-
Field Detail
-
DEFAULT_GRAPH_ID_KEY
public static final java.lang.String DEFAULT_GRAPH_ID_KEY
Default key used for the graph ID.- See Also:
- Constant Field Values
-
-
Method Detail
-
importInput
public void importInput(java.io.Reader in) throws ImportException
Description copied from interface:EventDrivenImporter
Import a graph- Specified by:
importInput
in interfaceEventDrivenImporter<java.lang.String,Pair<java.lang.String,java.lang.String>>
- Parameters:
in
- the input reader- Throws:
ImportException
- in case any error occurs, such as I/O or parse error
-
-