|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectewe.sys.Handle
ewe.io.IOHandle
This is used for asynchronous IO operations. See the Stream interface for examples.
| Field Summary | |
int |
bytesTransferred
This reports the number of bytes transferred. |
static int |
IO_ABORTED
This is returned during a read/write operation when a read/write request is made but the operation has been aborted by a call to stop() on this handle. |
static int |
IO_ERROR
This is a general IO_ERROR. |
long |
ioLocation
This is used in the case of RandomAccessStreams. |
boolean |
pleaseAbort
This can be used to request an abort - but it is not for general use. |
static int |
STREAM_CLOSED
This is returned during a read/write operation when a read/write request is made but the stream has been closed. |
static int |
STREAM_END_REACHED
This is returned during a read operation when a read request is made but the end of the input stream has been reached. |
| Fields inherited from class ewe.sys.Handle |
Aborted, Changed, doing, error, errorCode, errorObject, Failed, Failure, nativeResult, progress, progressResolution, returnValue, Running, shouldStop, startTime, state, Stopped, stopReason, Succeeded, Success, task |
| Constructor Summary | |
IOHandle()
|
|
| Method Summary | |
void |
stop(int reason)
This tells the handle to ask its associated task to stop. |
| Methods inherited from class ewe.sys.Handle |
callBackOnAnyFlag, callBackOnFlags, callWhenStopped, callWhenStopped, cancelCallBack, changed, check, check, checkAny, clearTag, doCallBackOnFlags, fail, failed, getErrorText, getHandle, getSubHandle, getSubHandle, getTag, getTask, hasStopped, resetProgress, resetTime, set, setFlags, setProgress, setTag, start, startDoing, startTask, stopAlsoIfStopped, stopTask, ticked, waitOn, waitOn, waitOn, waitOn, waitOnAny, waitOnAny, waitOnAny, waitOnAny, waitOnAnyFlag, waitOnFlags, waitOnFlags, waitUntilStopped, waitUntilStopped |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, toString |
| Field Detail |
public static final int IO_ERROR
public static final int STREAM_END_REACHED
public static final int STREAM_CLOSED
public static final int IO_ABORTED
public int bytesTransferred
public boolean pleaseAbort
public long ioLocation
| Constructor Detail |
public IOHandle()
| Method Detail |
public void stop(int reason)
Handle
stop in class Handle
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||