de.netseeker.ejoe.io
Class IncompleteIOException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.io.IOException
              extended byde.netseeker.ejoe.io.IncompleteIOException
All Implemented Interfaces:
java.io.Serializable

public class IncompleteIOException
extends java.io.IOException

A special exception type which will be thrown when a incomplete non-blocking IO read or write operation occurs.

Author:
netseeker
See Also:
Serialized Form

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()
           
 void setIOBuffer(java.nio.ByteBuffer buf)
           
 void setSelectionInterest(int interest)
           
 
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

IncompleteIOException

public IncompleteIOException(java.nio.ByteBuffer buf)
Creates a new IncompleteIOException and stores the given ByteBuffer for possible reuse

Parameters:
buf - the ByteBuffer containing the partial read/not yet written data

IncompleteIOException

public IncompleteIOException(java.nio.ByteBuffer buf,
                             int selectionInterest)
Creates a new IncompleteIOException and stores the given ByteBuffer for possible reuse. Additionally it stores the type of the operation which has thrown this Exception.

Parameters:
buf - the ByteBuffer containing the partial read/not yet written data
selectionInterest - type of the io operation which has caused the exception, can be either SelectionKey.OP_READ or SelectionKey.OP_WRITE
See Also:
SelectionKey
Method Detail

getIOBuffer

public java.nio.ByteBuffer getIOBuffer()
Returns the contained ByteBuffer.

Returns:

setIOBuffer

public void setIOBuffer(java.nio.ByteBuffer buf)
Parameters:
buf - The ByteBuffer to set.

getSelectionInterest

public int getSelectionInterest()

setSelectionInterest

public void setSelectionInterest(int interest)


Copyright © 2005-2006 netseeker. All Rights Reserved.