You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* returns whether writeMore should be called write additional data.
* @return is a additional write needed
*/
publicbooleanisNeedWrite();
/**
* Gets called when {@link #isNeedWrite()} ()} requires a additional rite
* @throws IOException may be thrown due to an error while writing
*/
publicvoidwriteMore() throwsIOException;
/**
* returns whether readMore should be called to fetch data which has been decoded but not yet been returned.
*
* @see #read(ByteBuffer)
* @see #readMore(ByteBuffer)
* @return is a additional read needed
**/
publicbooleanisNeedRead();
/**
* This function does not read data from the underlying channel at all. It is just a way to fetch data which has already be received or decoded but was but was not yet returned to the user.
* This could be the case when the decoded data did not fit into the buffer the user passed to {@link #read(ByteBuffer)}.
* @param dst the destiny of the read
* @return the amount of remaining data
* @throws IOException when a error occurred during unwrapping