org.knime.core.data.util
Class NonClosableOutputStream.Zip

java.lang.Object
  extended by java.io.OutputStream
      extended by org.knime.core.data.util.NonClosableOutputStream
          extended by org.knime.core.data.util.NonClosableOutputStream.Zip
All Implemented Interfaces:
Closeable, Flushable
Enclosing class:
NonClosableOutputStream

public static final class NonClosableOutputStream.Zip
extends NonClosableOutputStream

Special implementation that wraps ZipOutputStream objects and calls ZipOutputStream.closeEntry() when the stream is closed.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.knime.core.data.util.NonClosableOutputStream
NonClosableOutputStream.Zip
 
Constructor Summary
NonClosableOutputStream.Zip(ZipOutputStream zipOut)
          Wraps a given zip output stream.
 
Method Summary
 void close()
          Closes the currently open zip entry.
 
Methods inherited from class org.knime.core.data.util.NonClosableOutputStream
flush, getUnderlyingStream, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NonClosableOutputStream.Zip

public NonClosableOutputStream.Zip(ZipOutputStream zipOut)
Wraps a given zip output stream.

Parameters:
zipOut - The stream to wrap.
Method Detail

close

public void close()
           throws IOException
Closes the currently open zip entry.

Specified by:
close in interface Closeable
Overrides:
close in class NonClosableOutputStream
Throws:
IOException


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.