|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnct.output.ZIPSIFWriter<NodeType,WeightType>
public class ZIPSIFWriter<NodeType extends java.lang.Comparable<? super NodeType>,WeightType extends java.lang.Comparable<? super WeightType>>
This class writes the graphs contained in a given list out in SIF format to individual files contained within a ZIP archive file.
Field Summary | |
---|---|
protected byte[] |
bytes
The bytes of the content to be written. |
protected java.lang.StringBuffer |
content
The content to be written. |
protected java.util.zip.ZipOutputStream |
out
The output stream. |
Constructor Summary | |
---|---|
ZIPSIFWriter(java.lang.String fname)
Sets the output filename |
Method Summary | |
---|---|
void |
add(Graph<NodeType,WeightType> graph,
java.lang.String name)
Adds graph to zip archive. |
void |
write()
Finishes writing the ZIP file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.zip.ZipOutputStream out
protected java.lang.StringBuffer content
protected byte[] bytes
Constructor Detail |
---|
public ZIPSIFWriter(java.lang.String fname) throws java.io.IOException
fname
- The filename to write zip file to.
java.io.IOException
Method Detail |
---|
public void add(Graph<NodeType,WeightType> graph, java.lang.String name) throws java.io.IOException
graph
- The graph to be written as a SIF file and included in the archive.name
- The name of the SIF file to be written to the archive.
java.io.IOException
public void write() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |