public final class GraphMLWriter extends Object implements GraphWriter
Modifier and Type | Class and Description |
---|---|
static class |
GraphMLWriter.Builder |
GraphWriter.WriterBuilder<T extends GraphWriter>
Modifier and Type | Method and Description |
---|---|
static GraphMLWriter.Builder |
build() |
void |
writeEdge(OutputStream outputStream,
Edge e)
This method is not supported for this writer.
|
void |
writeGraph(OutputStream outputStream,
Graph g)
Write the data in a Graph to a GraphML OutputStream.
|
void |
writeObject(OutputStream outputStream,
Object object)
This method is not supported for this writer.
|
void |
writeProperty(OutputStream outputStream,
Property p)
This method is not supported for this writer.
|
void |
writeVertex(OutputStream outputStream,
Vertex v)
This method is not supported for this writer.
|
void |
writeVertex(OutputStream outputStream,
Vertex v,
Direction direction)
This method is not supported for this writer.
|
void |
writeVertexProperty(OutputStream outputStream,
VertexProperty vp)
This method is not supported for this writer.
|
void |
writeVertices(OutputStream outputStream,
Iterator<Vertex> vertexIterator)
This method is not supported for this writer.
|
void |
writeVertices(OutputStream outputStream,
Iterator<Vertex> vertexIterator,
Direction direction)
This method is not supported for this writer.
|
public void writeVertex(OutputStream outputStream, Vertex v, Direction direction) throws IOException
writeVertex
in interface GraphWriter
outputStream
- the stream to write to.v
- the vertex to write.direction
- the direction of edges to write or null if no edges are to be written.UnsupportedOperationException
- when called.IOException
public void writeVertex(OutputStream outputStream, Vertex v) throws IOException
writeVertex
in interface GraphWriter
outputStream
- the stream to write to.v
- the vertex to write.UnsupportedOperationException
- when called.IOException
public void writeEdge(OutputStream outputStream, Edge e) throws IOException
writeEdge
in interface GraphWriter
outputStream
- the stream to write to.e
- the edge to write.UnsupportedOperationException
- when called.IOException
public void writeVertices(OutputStream outputStream, Iterator<Vertex> vertexIterator, Direction direction) throws IOException
writeVertices
in interface GraphWriter
outputStream
- the stream to write to.vertexIterator
- a traversal that returns a list of vertices.direction
- the direction of edges to write or null if no edges are to be written.UnsupportedOperationException
- when called.IOException
public void writeVertices(OutputStream outputStream, Iterator<Vertex> vertexIterator) throws IOException
writeVertices
in interface GraphWriter
outputStream
- the stream to write to.vertexIterator
- a iterator that returns a list of vertices.UnsupportedOperationException
- when called.IOException
public void writeVertexProperty(OutputStream outputStream, VertexProperty vp) throws IOException
writeVertexProperty
in interface GraphWriter
outputStream
- the stream to write to.vp
- the vertex property to write.UnsupportedOperationException
- when called.IOException
public void writeProperty(OutputStream outputStream, Property p) throws IOException
writeProperty
in interface GraphWriter
outputStream
- the stream to write to.p
- the property to write.UnsupportedOperationException
- when called.IOException
public void writeObject(OutputStream outputStream, Object object) throws IOException
writeObject
in interface GraphWriter
outputStream
- the stream to write to.object
- the object to write which will use the standard serializer set.UnsupportedOperationException
- when called.IOException
public void writeGraph(OutputStream outputStream, Graph g) throws IOException
writeGraph
in interface GraphWriter
outputStream
- the GraphML OutputStream to write the Graph data tog
- the graph to write to stream.IOException
- thrown if there is an error generating the GraphML datapublic static GraphMLWriter.Builder build()
Copyright © 2013–2022 Apache Software Foundation. All rights reserved.