de.schlichtherle.truezip.socket
Class LazyInputSocket<E extends Entry>
java.lang.Object
de.schlichtherle.truezip.socket.IOSocket<E,Entry>
de.schlichtherle.truezip.socket.InputSocket<E>
de.schlichtherle.truezip.socket.DecoratingInputSocket<E>
de.schlichtherle.truezip.socket.LazyInputSocket<E>
- Type Parameters:
E - The type of the local target.
@NotThreadSafe
public final class LazyInputSocket<E extends Entry>
- extends DecoratingInputSocket<E>
A lazy input socket provides proxy read only files and input streams which
acquire their underlying local target upon the first read access.
- Author:
- Christian Schlichtherle
- See Also:
LazyOutputSocket
|
Method Summary |
InputStream |
newInputStream()
Returns a proxy input stream which acquires its underlying input
stream upon the first read access. |
ReadOnlyFile |
newReadOnlyFile()
Returns a proxy read only file which acquires its underlying read only
file upon the first read access. |
LazyInputSocket
public LazyInputSocket(@NonNull
InputSocket<? extends E> input)
newReadOnlyFile
public ReadOnlyFile newReadOnlyFile()
- Returns a proxy read only file which acquires its underlying read only
file upon the first read access.
- Overrides:
newReadOnlyFile in class DecoratingInputSocket<E extends Entry>
- Returns:
- A proxy read only file which acquires its underlying read only
file upon the first read access.
newInputStream
public InputStream newInputStream()
- Returns a proxy input stream which acquires its underlying input
stream upon the first read access.
- Overrides:
newInputStream in class DecoratingInputSocket<E extends Entry>
- Returns:
- A proxy input stream which acquires its underlying input
stream upon the first read access.
Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.