TrueZIP Kernel 7.0-rc2

de.schlichtherle.truezip.socket
Class ConcurrentOutputShop.ConcurrentOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by de.schlichtherle.truezip.io.DecoratingOutputStream
          extended by de.schlichtherle.truezip.socket.ConcurrentOutputShop.ConcurrentOutputStream
All Implemented Interfaces:
Closeable, Flushable
Enclosing class:
ConcurrentOutputShop<E extends Entry>

@NotThreadSafe
private final class ConcurrentOutputShop.ConcurrentOutputStream
extends DecoratingOutputStream


Field Summary
 
Fields inherited from class de.schlichtherle.truezip.io.DecoratingOutputStream
delegate
 
Constructor Summary
private ConcurrentOutputShop.ConcurrentOutputStream(OutputStream out)
           
 
Method Summary
 void close()
           
protected  void finalize()
          The finalizer in this class forces this output stream to close.
 void flush()
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class de.schlichtherle.truezip.io.DecoratingOutputStream
toString, write
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConcurrentOutputShop.ConcurrentOutputStream

private ConcurrentOutputShop.ConcurrentOutputStream(OutputStream out)
Method Detail

write

public void write(int b)
           throws IOException
Overrides:
write in class DecoratingOutputStream
Throws:
IOException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws IOException
Overrides:
write in class DecoratingOutputStream
Throws:
IOException

flush

public void flush()
           throws IOException
Specified by:
flush in interface Flushable
Overrides:
flush in class DecoratingOutputStream
Throws:
IOException

close

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

finalize

protected void finalize()
                 throws Throwable
The finalizer in this class forces this output stream to close. This ensures that an output container 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-rc2

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