Package org.java_websocket
Class AbstractWrappedByteChannel
java.lang.Object
org.java_websocket.AbstractWrappedByteChannel
- All Implemented Interfaces:
Closeable,AutoCloseable,ByteChannel,Channel,ReadableByteChannel,WritableByteChannel,WrappedByteChannel
Deprecated.
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Deprecated.booleanDeprecated.This function returns the blocking state of the channelbooleanDeprecated.returns whether readMore should be called to fetch data which has been decoded but not yet been returned.booleanDeprecated.returns whether writeMore should be called write additional data.booleanisOpen()Deprecated.intread(ByteBuffer dst) Deprecated.intreadMore(ByteBuffer dst) Deprecated.This function does not read data from the underlying channel at all.intwrite(ByteBuffer src) Deprecated.voidDeprecated.Gets called whenWrappedByteChannel.isNeedWrite()()} requires a additional rite
-
Constructor Details
-
AbstractWrappedByteChannel
Deprecated. -
AbstractWrappedByteChannel
Deprecated.
-
-
Method Details
-
read
Deprecated.- Specified by:
readin interfaceReadableByteChannel- Throws:
IOException
-
isOpen
public boolean isOpen()Deprecated. -
close
Deprecated.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel- Specified by:
closein interfaceCloseable- Throws:
IOException
-
write
Deprecated.- Specified by:
writein interfaceWritableByteChannel- Throws:
IOException
-
isNeedWrite
public boolean isNeedWrite()Deprecated.Description copied from interface:WrappedByteChannelreturns whether writeMore should be called write additional data.- Specified by:
isNeedWritein interfaceWrappedByteChannel- Returns:
- is a additional write needed
-
writeMore
Deprecated.Description copied from interface:WrappedByteChannelGets called whenWrappedByteChannel.isNeedWrite()()} requires a additional rite- Specified by:
writeMorein interfaceWrappedByteChannel- Throws:
IOException- may be thrown due to an error while writing
-
isNeedRead
public boolean isNeedRead()Deprecated.Description copied from interface:WrappedByteChannelreturns whether readMore should be called to fetch data which has been decoded but not yet been returned.- Specified by:
isNeedReadin interfaceWrappedByteChannel- Returns:
- is a additional read needed
- See Also:
-
readMore
Deprecated.Description copied from interface:WrappedByteChannelThis 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 toReadableByteChannel.read(ByteBuffer).- Specified by:
readMorein interfaceWrappedByteChannel- Parameters:
dst- the destiny of the read- Returns:
- the amount of remaining data
- Throws:
IOException- when a error occurred during unwrapping
-
isBlocking
public boolean isBlocking()Deprecated.Description copied from interface:WrappedByteChannelThis function returns the blocking state of the channel- Specified by:
isBlockingin interfaceWrappedByteChannel- Returns:
- is the channel blocking
-