de.schlichtherle.truezip.fs
Class FsCachingController.EntryCache.ProxyInputSocket
java.lang.Object
de.schlichtherle.truezip.socket.IOSocket<E,Entry>
de.schlichtherle.truezip.socket.InputSocket<E>
de.schlichtherle.truezip.socket.DecoratingInputSocket<Entry>
de.schlichtherle.truezip.fs.FsCachingController.EntryCache.ProxyInputSocket
- Enclosing class:
- FsCachingController.EntryCache
private class FsCachingController.EntryCache.ProxyInputSocket
- extends DecoratingInputSocket<Entry>
An input socket proxy.
| Methods inherited from class de.schlichtherle.truezip.socket.InputSocket |
bind |
FsCachingController.EntryCache.ProxyInputSocket
FsCachingController.EntryCache.ProxyInputSocket(InputSocket<?> input)
newReadOnlyFile
public ReadOnlyFile newReadOnlyFile()
throws IOException
- Description copied from class:
InputSocket
- Optional: Returns a new read only file for reading bytes from
the
local target in arbitrary order.
If this method is supported, implementations must enable calling it
any number of times.
Furthermore, the returned read only file should not be buffered.
Buffering should be addressed by client applications instead.
- Overrides:
newReadOnlyFile in class DecoratingInputSocket<Entry>
- Returns:
- A new read only file.
- Throws:
FileNotFoundException - if the local target does not exist or is
not accessible for some reason.
IOException - on any other exceptional condition.
newInputStream
public InputStream newInputStream()
throws IOException
- Description copied from class:
InputSocket
- Returns a new input stream for reading bytes from the
local target.
Implementations must enable calling this method any number of times.
Furthermore, the returned input stream should not be buffered.
Buffering should be addressed by the caller instead - see
IOSocket.copy(de.schlichtherle.truezip.socket.InputSocket>, de.schlichtherle.truezip.socket.OutputSocket>).
The implementation in the class InputSocket calls
InputSocket.newReadOnlyFile() and wraps the resulting object in a new
ReadOnlyFileInputStream as an adapter.
- Overrides:
newInputStream in class DecoratingInputSocket<Entry>
- Returns:
- A new input stream.
- Throws:
FileNotFoundException - if the local target does not exist or is
not accessible for some reason.
IOException - on any other exceptional condition.
Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.