de.schlichtherle.truezip.socket
Class ConcurrentOutputShop.ConcurrentOutputStream
java.lang.Object
java.io.OutputStream
de.schlichtherle.truezip.io.DecoratingOutputStream
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
|
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)
|
ConcurrentOutputShop.ConcurrentOutputStream
private ConcurrentOutputShop.ConcurrentOutputStream(OutputStream out)
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
Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.