|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.ejtools.archive.io.StreamWriter
Writer implementation based on stream. Each Archive and each Entry will be output through a ZipOutputStream. This classe serves as parent for derived ones.
| Constructor Summary | |
StreamWriter()
|
|
| Method Summary | |
protected java.util.zip.ZipOutputStream |
getZipOutputStream()
Returns the current stream |
protected java.util.zip.ZipOutputStream |
popZipOutputStream()
Pops the last entered stream |
protected void |
pushZipOutputStream(java.util.zip.ZipOutputStream stream)
Pushes a stream onto the stack |
void |
visit(Archive archive)
Visit an archive. |
void |
visit(Entry entry)
Visit an entry. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StreamWriter()
| Method Detail |
public void visit(Archive archive)
visit in interface Writerarchive - The archive to visitpublic void visit(Entry entry)
visit in interface Writerentry - The entry to visitprotected java.util.zip.ZipOutputStream getZipOutputStream()
protected java.util.zip.ZipOutputStream popZipOutputStream()
throws java.io.IOException
java.io.IOException - If no stream is available
protected void pushZipOutputStream(java.util.zip.ZipOutputStream stream)
throws java.io.IOException
stream - The stream
java.io.IOException - Shoud never occured
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||