public class FileSinkGEXF2 extends PipeBase implements FileSink
SourceBase.ElementType| Constructor and Description |
|---|
FileSinkGEXF2() |
| Modifier and Type | Method and Description |
|---|---|
void |
begin(OutputStream stream)
Begin the output of the given stream of graph events.
|
void |
begin(String fileName)
Begin the output of the given stream of graph events.
|
void |
begin(Writer writer)
Begin the output of the given stream of graph events.
|
void |
end()
End the writing process started with
FileSink.begin(OutputStream) or
FileSink.begin(String). |
void |
flush()
Ensure all data sent to the output are correctly written.
|
void |
writeAll(Graph graph,
OutputStream stream)
Write the current graph state in one big non-interruptible operation.
|
void |
writeAll(Graph graph,
String fileName)
Write the current graph state in one big non-interruptible operation.
|
void |
writeAll(Graph graph,
Writer writer)
Write the current graph state in one big non-interruptible operation.
|
edgeAdded, edgeAttributeAdded, edgeAttributeChanged, edgeAttributeRemoved, edgeRemoved, graphAttributeAdded, graphAttributeChanged, graphAttributeRemoved, graphCleared, nodeAdded, nodeAttributeAdded, nodeAttributeChanged, nodeAttributeRemoved, nodeRemoved, stepBeginsaddAttributeSink, addElementSink, addSink, attributeSinks, clearAttributeSinks, clearElementSinks, clearSinks, elementSinks, removeAttributeSink, removeElementSink, removeSink, sendAttributeChangedEvent, sendAttributeChangedEvent, sendEdgeAdded, sendEdgeAdded, sendEdgeAttributeAdded, sendEdgeAttributeAdded, sendEdgeAttributeChanged, sendEdgeAttributeChanged, sendEdgeAttributeRemoved, sendEdgeAttributeRemoved, sendEdgeRemoved, sendEdgeRemoved, sendGraphAttributeAdded, sendGraphAttributeAdded, sendGraphAttributeChanged, sendGraphAttributeChanged, sendGraphAttributeRemoved, sendGraphAttributeRemoved, sendGraphCleared, sendGraphCleared, sendNodeAdded, sendNodeAdded, sendNodeAttributeAdded, sendNodeAttributeAdded, sendNodeAttributeChanged, sendNodeAttributeChanged, sendNodeAttributeRemoved, sendNodeAttributeRemoved, sendNodeRemoved, sendNodeRemoved, sendStepBegins, sendStepBeginsequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitedgeAttributeAdded, edgeAttributeChanged, edgeAttributeRemoved, graphAttributeAdded, graphAttributeChanged, graphAttributeRemoved, nodeAttributeAdded, nodeAttributeChanged, nodeAttributeRemovededgeAdded, edgeRemoved, graphCleared, nodeAdded, nodeRemoved, stepBeginsaddAttributeSink, addElementSink, addSink, clearAttributeSinks, clearElementSinks, clearSinks, removeAttributeSink, removeElementSink, removeSinkpublic void writeAll(Graph graph, String fileName) throws IOException
FileSinkFileSink.begin(OutputStream) or
FileSink.begin(String) as soon as the graph appears (or any source of
graph event, any descendant of Source will do).writeAll in interface FileSinkgraph - The graph to send as events to the file.fileName - Name of the file to write.IOException - if an I/O error occurs while writing.public void writeAll(Graph graph, OutputStream stream) throws IOException
FileSinkFileSink.begin(Writer) or
FileSink.begin(OutputStream) or FileSink.begin(String) as soon as the
graph appears (or any source of graph event, any descendant of
Source will do).writeAll in interface FileSinkgraph - The graph to send as events to the file.stream - The stream where the graph is sent.IOException - if an I/O error occurs while writing.public void writeAll(Graph graph, Writer writer) throws IOException
FileSinkFileSink.begin(Writer) or
FileSink.begin(OutputStream) or FileSink.begin(String) as soon as the
graph appears (or any source of graph event, any descendant of
Source will do).writeAll in interface FileSinkgraph - The graph to send as events to the file.writer - The writer where the graph is sent.IOException - if an I/O error occurs while writing.public void begin(String fileName) throws IOException
FileSinkSource or you can
directly use the methods inherited from Sink. Once the writing is
started using begin(), you must close it using FileSink.end() when done
to ensure data is correctly stored in the file.begin in interface FileSinkfileName - The name of the file where to output the graph events.IOException - If an I/O error occurs while writing.public void begin(OutputStream stream) throws IOException
FileSinkSource or you can
directly use the methods inherited from Sink. Once the writing is
started using begin(), you must close it using FileSink.end() when done
to ensure data is correctly stored in the file.begin in interface FileSinkstream - The file stream where to output the graph events.IOException - If an I/O error occurs while writing.public void begin(Writer writer) throws IOException
FileSinkSource or you can
directly use the methods inherited from Sink. Once the writing is
started using begin(), you must close it using FileSink.end() when done
to ensure data is correctly stored in the file.begin in interface FileSinkwriter - The writer where to output the graph events.IOException - If an I/O error occurs while writing.public void flush()
throws IOException
FileSinkflush in interface FileSinkIOException - If an I/O error occurs during write.public void end()
throws IOException
FileSinkFileSink.begin(OutputStream) or
FileSink.begin(String).end in interface FileSinkIOExceptionCopyright © 2015. All rights reserved.