net.sf.neem
Class BufferTooSmallException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by net.sf.neem.BufferTooSmallException
All Implemented Interfaces:
java.io.Serializable

public class BufferTooSmallException
extends java.io.IOException

Attempt to receive with a buffer too small. This exception is thrown when an attempt is made to receive a message with a buffer too small and the channel is not configured to truncate messages. It should be used as an indication to use a larger buffer.

See Also:
Serialized Form

Method Summary
 int getRequired()
          Obtains the number of bytes remaining required in the buffer to properly handle the next message in the queue.
 
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
 

Method Detail

getRequired

public int getRequired()
Obtains the number of bytes remaining required in the buffer to properly handle the next message in the queue.

Returns:
number of bytes required


Copyright © 2005 University of Minho, Portugal. All Rights Reserved.