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

java.lang.Object
  extended by java.io.InputStream
      extended by org.knime.core.data.util.NonClosableInputStream
          extended by org.knime.core.data.util.NonClosableInputStream.Zip
All Implemented Interfaces:
Closeable
Enclosing class:
NonClosableInputStream

public static final class NonClosableInputStream.Zip
extends NonClosableInputStream

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


Nested Class Summary
 
Nested classes/interfaces inherited from class org.knime.core.data.util.NonClosableInputStream
NonClosableInputStream.Zip
 
Constructor Summary
NonClosableInputStream.Zip(ZipInputStream zipIn)
          Wraps a given zip input stream.
 
Method Summary
 void close()
          Closes the currently open zip entry.
 
Methods inherited from class org.knime.core.data.util.NonClosableInputStream
available, getUnderlyingStream, mark, markSupported, read, read, read, reset, skip, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NonClosableInputStream.Zip

public NonClosableInputStream.Zip(ZipInputStream zipIn)
Wraps a given zip input stream.

Parameters:
zipIn - The stream to wrap.
Method Detail

close

public void close()
           throws IOException
Closes the currently open zip entry. Does NOT delegate to wrapped input stream, ignores call.

Specified by:
close in interface Closeable
Overrides:
close in class NonClosableInputStream
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.