|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.io.IOException
de.netseeker.ejoe.io.IncompleteIOException
public class IncompleteIOException
A special exception type which will be thrown when a incomplete non-blocking IO read or write operation occurs.
| Constructor Summary | |
|---|---|
IncompleteIOException(java.nio.ByteBuffer buf)
Creates a new IncompleteIOException and stores the given ByteBuffer for possible reuse |
|
IncompleteIOException(java.nio.ByteBuffer buf,
int selectionInterest)
Creates a new IncompleteIOException and stores the given ByteBuffer for possible reuse. |
|
| Method Summary | |
|---|---|
java.nio.ByteBuffer |
getIOBuffer()
Returns the contained ByteBuffer. |
int |
getSelectionInterest()
Returns the type of this incomplete io exception, either incomplete write or incomplete read. |
void |
setIOBuffer(java.nio.ByteBuffer buf)
Sets the internal ByteBuffer containing partial data, can be also null |
void |
setSelectionInterest(int interest)
Sets the type of this incomplete io exception, either incomplete write or incomplete read. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IncompleteIOException(java.nio.ByteBuffer buf)
buf - the ByteBuffer containing the partial read/not yet written data
public IncompleteIOException(java.nio.ByteBuffer buf,
int selectionInterest)
buf - the ByteBuffer containing the partial read/not yet written dataselectionInterest - type of the io operation which has caused the exception, can be either
SelectionKey.OP_READ or SelectionKey.OP_WRITESelectionKey| Method Detail |
|---|
public java.nio.ByteBuffer getIOBuffer()
public void setIOBuffer(java.nio.ByteBuffer buf)
buf - The ByteBuffer to set.public int getSelectionInterest()
public void setSelectionInterest(int interest)
interest - SelectionKey.OP_WRITE for incomplete write, SelectionKey.OP_READ for incomplete write
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||