yext.graphml.graph2D
Class ZipGraphMLIOHandler

java.lang.Object
  extended byy.io.IOHandler
      extended byyext.graphml.graph2D.GraphMLIOHandler
          extended byyext.graphml.graph2D.ZipGraphMLIOHandler

public class ZipGraphMLIOHandler
extends GraphMLIOHandler

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


Field Summary
 
Fields inherited from class yext.graphml.graph2D.GraphMLIOHandler
edgeOutputHandlers, graphmlOutputHandlers, graphOutputHandlers, ignoreGraphicsEnabled, inputHandlers, nodeOutputHandlers, portOutputHandlers, validationEnabled, writeDTDEnabled, writeXMLSchemaEnabled
 
Constructor Summary
ZipGraphMLIOHandler()
          Creates a new instance of ZipGraphMLIOHandler.
 
Method Summary
 String getFileFormatString()
          Returns the Zip-compressed GraphML file format string.
 String getFileNameExtension()
          Returns the default file name extension for Zip-compressed GraphML files.
 void read(Graph2D graph, 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, 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 yext.graphml.graph2D.GraphMLIOHandler
addAttribute, addAttribute, addEdgeAttribute, addEdgeRealizerSerializer, addGraphAttribute, addInputHandler, addInputHandler, addNamespace, addNodeAttribute, addNodeRealizerSerializer, addOutputHandler, addSchemaLocation, canRead, canWrite, clearInputHandlers, configureCoreWriter, createDirectGraphMLWriter, createGraphElementFactory, createGraphElementProvider, createParser, createXmlWriter, createXmlWriter, createXmlWriter, getErrorHandler, getGraphIdAcceptor, getGraphIdProvider, getGraphmlCoreNS, getIdDataAcceptor, getIdDataProvider, getInputHandlerProvider, getInputHandlers, getInputHandlers, getOutputEncoding, getOutputHandlerProvider, getOutputHandlers, getRealizerSerializerManager, getResourceDecoderProvider, getResourceEncoderProvider, isIgnoreGraphicsEnabled, isReadEmbeddedResources, isValidationEnabled, isWriteDTDEnabled, isWriteEmbeddedResources, isWriteSelectionStateEnabled, isWriteXMLSchemaEnabled, read, removeInputHandler, setErrorHandler, setGraphIdAcceptor, setGraphIdProvider, setGraphmlCoreNS, setIdDataAcceptor, setIdDataProvider, setIgnoreGraphicsEnabled, setInputHandlerProvider, setOutputEncoding, setOutputHandlerProvider, setReadEmbeddedResources, setValidationEnabled, setWriteDTDEnabled, setWriteEmbeddedResources, setWriteSelectionStateEnabled, setWriteXMLSchemaEnabled, write, write
 
Methods inherited from class y.io.IOHandler
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.GraphMLIOHandler()
Method Detail

getFileFormatString

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

Overrides:
getFileFormatString in class GraphMLIOHandler

getFileNameExtension

public 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,
                 InputStream is)
          throws 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
Parameters:
graph - The Graph2D object that is to be populated with nodes and edges as read from the GraphML file.
is - The input stream that holds the GraphML file to be read.
Throws:
IOException
See Also:
GraphMLIOHandler.read(y.view.Graph2D, java.io.InputStream)

write

public void write(Graph2D graph,
                  OutputStream os)
           throws 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
Parameters:
graph - The Graph2D object that is to be written to a GraphML file.
os - The output stream that becomes the GraphML file.
Throws:
IOException
See Also:
GraphMLIOHandler.write(y.view.Graph2D, java.io.OutputStream)


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