public class FileInteraction
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.io.File |
mFile |
| Modifier | Constructor and Description |
|---|---|
protected |
FileInteraction(java.io.File file)
Create a new instance of the FileInteraction.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
getInputStream()
Get the
InputStream to read data from this File resource |
java.io.OutputStream |
getOutputStream()
Get the
OutputStream to write data to this file resource |
protected void |
stop()
Stop this interaction instance.
|
protected FileInteraction(java.io.File file)
throws ConnectionException
file - The physical File Handle to the resource.{@link - ConnectionException} if the channels cannot be established.ConnectionExceptionpublic java.io.InputStream getInputStream()
InputStream to read data from this File resourceInputStream channel for this File resource.public java.io.OutputStream getOutputStream()
OutputStream to write data to this file resourceOutputStream channel for this File resource.protected void stop()