public class GraphSONWriter extends Object
| Constructor and Description |
|---|
GraphSONWriter(Graph graph) |
| Modifier and Type | Method and Description |
|---|---|
static void |
outputGraph(Graph graph,
OutputStream jsonOutputStream)
Write the data in a Graph to a JSON OutputStream.
|
static void |
outputGraph(Graph graph,
OutputStream jsonOutputStream,
GraphSONMode mode)
Write the data in a Graph to a JSON OutputStream.
|
static void |
outputGraph(Graph graph,
OutputStream jsonOutputStream,
Set<String> vertexPropertyKeys,
Set<String> edgePropertyKeys,
GraphSONMode mode)
Write the data in a Graph to a JSON OutputStream.
|
static void |
outputGraph(Graph graph,
String filename)
Write the data in a Graph to a JSON OutputStream.
|
static void |
outputGraph(Graph graph,
String filename,
GraphSONMode mode)
Write the data in a Graph to a JSON OutputStream.
|
static void |
outputGraph(Graph graph,
String filename,
Set<String> vertexPropertyKeys,
Set<String> edgePropertyKeys,
GraphSONMode mode)
Write the data in a Graph to a JSON OutputStream.
|
void |
outputGraph(OutputStream jsonOutputStream,
Set<String> vertexPropertyKeys,
Set<String> edgePropertyKeys,
GraphSONMode mode)
Write the data in a Graph to a JSON OutputStream.
|
void |
outputGraph(OutputStream jsonOutputStream,
Set<String> vertexPropertyKeys,
Set<String> edgePropertyKeys,
GraphSONMode mode,
boolean normalize) |
void |
outputGraph(String filename,
Set<String> vertexPropertyKeys,
Set<String> edgePropertyKeys,
GraphSONMode mode)
Write the data in a Graph to a JSON OutputStream.
|
public GraphSONWriter(Graph graph)
graph - the Graph to pull the data frompublic void outputGraph(String filename, Set<String> vertexPropertyKeys, Set<String> edgePropertyKeys, GraphSONMode mode) throws IOException
filename - the JSON file to write the Graph data tovertexPropertyKeys - the keys of the vertex elements to write to JSONedgePropertyKeys - the keys of the edge elements to write to JSONmode - determines the format of the GraphSONIOException - thrown if there is an error generating the JSON datapublic void outputGraph(OutputStream jsonOutputStream, Set<String> vertexPropertyKeys, Set<String> edgePropertyKeys, GraphSONMode mode) throws IOException
jsonOutputStream - the JSON OutputStream to write the Graph data tovertexPropertyKeys - the keys of the vertex elements to write to JSONedgePropertyKeys - the keys of the edge elements to write to JSONmode - determines the format of the GraphSONIOException - thrown if there is an error generating the JSON datapublic void outputGraph(OutputStream jsonOutputStream, Set<String> vertexPropertyKeys, Set<String> edgePropertyKeys, GraphSONMode mode, boolean normalize) throws IOException
IOExceptionpublic static void outputGraph(Graph graph, OutputStream jsonOutputStream) throws IOException
graph - the graph to serialize to JSONjsonOutputStream - the JSON OutputStream to write the Graph data toIOException - thrown if there is an error generating the JSON datapublic static void outputGraph(Graph graph, String filename) throws IOException
graph - the graph to serialize to JSONfilename - the JSON file to write the Graph data toIOException - thrown if there is an error generating the JSON datapublic static void outputGraph(Graph graph, OutputStream jsonOutputStream, GraphSONMode mode) throws IOException
graph - the graph to serialize to JSONjsonOutputStream - the JSON OutputStream to write the Graph data tomode - determines the format of the GraphSONIOException - thrown if there is an error generating the JSON datapublic static void outputGraph(Graph graph, String filename, GraphSONMode mode) throws IOException
graph - the graph to serialize to JSONfilename - the JSON file to write the Graph data tomode - determines the format of the GraphSONIOException - thrown if there is an error generating the JSON datapublic static void outputGraph(Graph graph, OutputStream jsonOutputStream, Set<String> vertexPropertyKeys, Set<String> edgePropertyKeys, GraphSONMode mode) throws IOException
graph - the graph to serialize to JSONjsonOutputStream - the JSON OutputStream to write the Graph data tovertexPropertyKeys - the keys of the vertex elements to write to JSONedgePropertyKeys - the keys of the edge elements to write to JSONmode - determines the format of the GraphSONIOException - thrown if there is an error generating the JSON datapublic static void outputGraph(Graph graph, String filename, Set<String> vertexPropertyKeys, Set<String> edgePropertyKeys, GraphSONMode mode) throws IOException
graph - the graph to serialize to JSONfilename - the JSON file to write the Graph data tovertexPropertyKeys - the keys of the vertex elements to write to JSONedgePropertyKeys - the keys of the edge elements to write to JSONmode - determines the format of the GraphSONIOException - thrown if there is an error generating the JSON dataCopyright © 2010-2014. All Rights Reserved.