de.schlichtherle.truezip.socket
Class LazyOutputSocket<E extends Entry>
java.lang.Object
de.schlichtherle.truezip.socket.IOSocket<E,Entry>
de.schlichtherle.truezip.socket.OutputSocket<E>
de.schlichtherle.truezip.socket.DecoratingOutputSocket<E>
de.schlichtherle.truezip.socket.LazyOutputSocket<E>
- Type Parameters:
E - The type of the local target.
@NotThreadSafe
public final class LazyOutputSocket<E extends Entry>
- extends DecoratingOutputSocket<E>
A lazy output socket provides proxy output streams which acquire their
underlying local target upon the first read access.
- Author:
- Christian Schlichtherle
- See Also:
LazyInputSocket
|
Method Summary |
OutputStream |
newOutputStream()
Returns a proxy output stream which acquires its underlying output
stream upon the first read access. |
LazyOutputSocket
public LazyOutputSocket(@NonNull
OutputSocket<? extends E> output)
newOutputStream
public OutputStream newOutputStream()
throws IOException
- Returns a proxy output stream which acquires its underlying output
stream upon the first read access.
- Overrides:
newOutputStream in class DecoratingOutputSocket<E extends Entry>
- Returns:
- A proxy output stream which acquires its underlying output
stream upon the first write access.
- Throws:
FileNotFoundException - if the local target is not accessible
for some reason.
IOException - on any other exceptional condition.
Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.