Search this API

y.io
Class ZipGraphMLIOHandler

java.lang.Object
  extended by y.io.IOHandler
      extended by y.io.GraphMLIOHandler
          extended by y.io.ZipGraphMLIOHandler

public class ZipGraphMLIOHandler
extends GraphMLIOHandler

IOHandler for (de)serializing graphs from/to Zip-compressed GraphML format.

 

Constructor Summary
ZipGraphMLIOHandler()
          Creates a new instance of ZipGraphMLIOHandler.
 
Method Summary
 java.lang.String getFileFormatString()
          Returns the Zip-compressed GraphML file format string.
 java.lang.String getFileNameExtension()
          Returns the default file name extension for Zip-compressed GraphML files.
 void read(Graph2D graph, java.io.InputStream is)
          Reads a GraphML file from the given input stream (using a Zip compression stream filter) and populates the Graph2D object.
 void write(Graph2D graph, java.io.OutputStream os)
          Writes the given Graph2D object to the output stream (using a Zip compression stream filter) creating a GraphML file.
 
Methods inherited from class y.io.GraphMLIOHandler
addEdgeRealizerSerializer, addNodeRealizerSerializer, createGraphMLHandler, getGraphMLHandler, read, write
 
Methods inherited from class y.io.IOHandler
canRead, canWrite, canWriteSubset, createObjectInputStream, createObjectOutputStream, hide, read, read, shouldSerialize, shouldSerialize, write, writeSubset, writeSubset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipGraphMLIOHandler

public ZipGraphMLIOHandler()
Creates a new instance of ZipGraphMLIOHandler.

See Also:
GraphMLIOHandler
Method Detail

getFileFormatString

public java.lang.String getFileFormatString()
Returns the Zip-compressed GraphML file format string.

Overrides:
getFileFormatString in class GraphMLIOHandler

getFileNameExtension

public java.lang.String getFileNameExtension()
Returns the default file name extension for Zip-compressed GraphML files.

Overrides:
getFileNameExtension in class GraphMLIOHandler
Returns:
graphmlz

read

public void read(Graph2D graph,
                 java.io.InputStream is)
          throws java.io.IOException
Reads a GraphML file from the given input stream (using a Zip compression stream filter) and populates the Graph2D object.

Overrides:
read in class GraphMLIOHandler
Throws:
java.io.IOException
See Also:
GraphMLIOHandler.read(Graph2D,InputStream)

write

public void write(Graph2D graph,
                  java.io.OutputStream os)
           throws java.io.IOException
Writes the given Graph2D object to the output stream (using a Zip compression stream filter) creating a GraphML file.

Overrides:
write in class GraphMLIOHandler
Throws:
java.io.IOException
See Also:
GraphMLIOHandler.write(Graph2D,OutputStream)

© Copyright 2000-2021,
yWorks GmbH.
All rights reserved.