TrueZIP Kernel 7.0-rc1

de.schlichtherle.truezip.socket
Class ConcurrentInputShop.ConcurrentInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by de.schlichtherle.truezip.io.DecoratingInputStream
          extended by de.schlichtherle.truezip.socket.ConcurrentInputShop.ConcurrentInputStream
All Implemented Interfaces:
Closeable
Enclosing class:
ConcurrentInputShop<E extends Entry>

@NotThreadSafe
private final class ConcurrentInputShop.ConcurrentInputStream
extends DecoratingInputStream


Field Summary
 
Fields inherited from class de.schlichtherle.truezip.io.DecoratingInputStream
delegate
 
Constructor Summary
ConcurrentInputShop.ConcurrentInputStream(InputStream in)
           
 
Method Summary
 int available()
           
 void close()
           
protected  void finalize()
          The finalizer in this class forces this input stream to close.
 void mark(int readlimit)
           
 boolean markSupported()
           
 int read()
           
 int read(byte[] b, int off, int len)
           
 void reset()
           
 long skip(long n)
           
 
Methods inherited from class de.schlichtherle.truezip.io.DecoratingInputStream
read, toString
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConcurrentInputShop.ConcurrentInputStream

ConcurrentInputShop.ConcurrentInputStream(InputStream in)
Method Detail

read

public int read()
         throws IOException
Overrides:
read in class DecoratingInputStream
Throws:
IOException

read

public int read(byte[] b,
                int off,
                int len)
         throws IOException
Overrides:
read in class DecoratingInputStream
Throws:
IOException

skip

public long skip(long n)
          throws IOException
Overrides:
skip in class DecoratingInputStream
Throws:
IOException

available

public int available()
              throws IOException
Overrides:
available in class DecoratingInputStream
Throws:
IOException

mark

public void mark(int readlimit)
Overrides:
mark in class DecoratingInputStream

reset

public void reset()
           throws IOException
Overrides:
reset in class DecoratingInputStream
Throws:
IOException

markSupported

public boolean markSupported()
Overrides:
markSupported in class DecoratingInputStream

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class DecoratingInputStream
Throws:
IOException

finalize

protected void finalize()
                 throws Throwable
The finalizer in this class forces this input stream to close. This ensures that an input target can be updated although the client application may have "forgot" to close this instance before.

Overrides:
finalize in class Object
Throws:
Throwable

TrueZIP Kernel 7.0-rc1

Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.