|
TrueZIP Kernel 7.0-rc2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.schlichtherle.truezip.socket.IOSocket<E,Entry>
de.schlichtherle.truezip.socket.InputSocket<ByteArrayIOEntry>
de.schlichtherle.truezip.socket.ByteArrayIOEntry.ByteArrayInputSocket
private final class ByteArrayIOEntry.ByteArrayInputSocket
| Constructor Summary | |
|---|---|
private |
ByteArrayIOEntry.ByteArrayInputSocket()
|
| Method Summary | |
|---|---|
ByteArrayIOEntry |
getLocalTarget()
Returns the local target for I/O operations. |
InputStream |
newInputStream()
Returns a new input stream for reading bytes from the local target. |
ReadOnlyFile |
newReadOnlyFile()
Optional: Returns a new read only file for reading bytes from the local target in arbitrary order. |
| Methods inherited from class de.schlichtherle.truezip.socket.InputSocket |
|---|
bind, connect, getPeerTarget |
| Methods inherited from class de.schlichtherle.truezip.socket.IOSocket |
|---|
copy, equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
private ByteArrayIOEntry.ByteArrayInputSocket()
| Method Detail |
|---|
public ByteArrayIOEntry getLocalTarget()
throws IOException
IOSocket
Note that this interface contract does not state any other
terms or conditions for the returned object.
In particular, clients need to consider that multiple invocations of
this method could return different objects (e.g. defensive copies) which
may even fail the Object.equals(java.lang.Object) test.
On the other hand, implementations need to consider that clients could
attempt to change the state of the returned object in arbitrary manner.
Consequently, the result of doing so is undefined, too.
In particular, a subsequent I/O operation may not reflect the change
or may even fail.
Sub-interfaces or implementations may add additional terms and
conditions in order to resolve these potential issues.
getLocalTarget in class IOSocket<ByteArrayIOEntry,Entry>IOException
public ReadOnlyFile newReadOnlyFile()
throws IOException
InputSocketlocal 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.
newReadOnlyFile in class InputSocket<ByteArrayIOEntry>FileNotFoundException - if the local target does not exist or is
not accessible for some reason.
IOException - on any other exceptional condition.
public InputStream newInputStream()
throws IOException
InputSocketlocal 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.
newInputStream in class InputSocket<ByteArrayIOEntry>FileNotFoundException - if the local target does not exist or is
not accessible for some reason.
IOException - on any other exceptional condition.
|
TrueZIP Kernel 7.0-rc2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||