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 GraphWriteroutputStream - 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.IOExceptionpublic void writeVertex(OutputStream outputStream, Vertex v) throws IOException
writeVertex in interface GraphWriteroutputStream - the stream to write to.v - the vertex to write.UnsupportedOperationException - when called.IOExceptionpublic void writeEdge(OutputStream outputStream, Edge e) throws IOException
writeEdge in interface GraphWriteroutputStream - the stream to write to.e - the edge to write.UnsupportedOperationException - when called.IOExceptionpublic void writeVertices(OutputStream outputStream, Iterator<Vertex> vertexIterator, Direction direction) throws IOException
writeVertices in interface GraphWriteroutputStream - 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.IOExceptionpublic void writeVertices(OutputStream outputStream, Iterator<Vertex> vertexIterator) throws IOException
writeVertices in interface GraphWriteroutputStream - the stream to write to.vertexIterator - a iterator that returns a list of vertices.UnsupportedOperationException - when called.IOExceptionpublic void writeVertexProperty(OutputStream outputStream, VertexProperty vp) throws IOException
writeVertexProperty in interface GraphWriteroutputStream - the stream to write to.vp - the vertex property to write.UnsupportedOperationException - when called.IOExceptionpublic void writeProperty(OutputStream outputStream, Property p) throws IOException
writeProperty in interface GraphWriteroutputStream - the stream to write to.p - the property to write.UnsupportedOperationException - when called.IOExceptionpublic void writeObject(OutputStream outputStream, Object object) throws IOException
writeObject in interface GraphWriteroutputStream - the stream to write to.object - the object to write which will use the standard serializer set.UnsupportedOperationException - when called.IOExceptionpublic void writeGraph(OutputStream outputStream, Graph g) throws IOException
writeGraph in interface GraphWriteroutputStream - 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–2020 Apache Software Foundation. All rights reserved.