|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecty.io.IOHandler
yext.graphml.graph2D.GraphMLIOHandler
yext.graphml.graph2D.ZipGraphMLIOHandler
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 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 |
public ZipGraphMLIOHandler()
GraphMLIOHandler.GraphMLIOHandler()| Method Detail |
public String getFileFormatString()
getFileFormatString in class GraphMLIOHandlerpublic String getFileNameExtension()
getFileNameExtension in class GraphMLIOHandlergraphmlz
public void read(Graph2D graph,
InputStream is)
throws IOException
read in class GraphMLIOHandlergraph - 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.
IOExceptionGraphMLIOHandler.read(y.view.Graph2D, java.io.InputStream)
public void write(Graph2D graph,
OutputStream os)
throws IOException
write in class GraphMLIOHandlergraph - The Graph2D object that is to be written to a GraphML file.os - The output stream that becomes the GraphML file.
IOExceptionGraphMLIOHandler.write(y.view.Graph2D, java.io.OutputStream)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||