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 TypeMethodDescriptionvoid
close()
Deprecated.boolean
Deprecated.This function returns the blocking state of the channelboolean
Deprecated.returns whether readMore should be called to fetch data which has been decoded but not yet been returned.boolean
Deprecated.returns whether writeMore should be called write additional data.boolean
isOpen()
Deprecated.int
read
(ByteBuffer dst) Deprecated.int
readMore
(ByteBuffer dst) Deprecated.This function does not read data from the underlying channel at all.int
write
(ByteBuffer src) Deprecated.void
Deprecated.Gets called whenWrappedByteChannel.isNeedWrite()
()} requires a additional rite
-
Constructor Details
-
AbstractWrappedByteChannel
Deprecated. -
AbstractWrappedByteChannel
Deprecated.
-
-
Method Details
-
read
Deprecated.- Specified by:
read
in interfaceReadableByteChannel
- Throws:
IOException
-
isOpen
public boolean isOpen()Deprecated. -
close
Deprecated.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceChannel
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
write
Deprecated.- Specified by:
write
in interfaceWritableByteChannel
- Throws:
IOException
-
isNeedWrite
public boolean isNeedWrite()Deprecated.Description copied from interface:WrappedByteChannel
returns whether writeMore should be called write additional data.- Specified by:
isNeedWrite
in interfaceWrappedByteChannel
- Returns:
- is a additional write needed
-
writeMore
Deprecated.Description copied from interface:WrappedByteChannel
Gets called whenWrappedByteChannel.isNeedWrite()
()} requires a additional rite- Specified by:
writeMore
in interfaceWrappedByteChannel
- Throws:
IOException
- may be thrown due to an error while writing
-
isNeedRead
public boolean isNeedRead()Deprecated.Description copied from interface:WrappedByteChannel
returns whether readMore should be called to fetch data which has been decoded but not yet been returned.- Specified by:
isNeedRead
in interfaceWrappedByteChannel
- Returns:
- is a additional read needed
- See Also:
-
readMore
Deprecated.Description copied from interface:WrappedByteChannel
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 toReadableByteChannel.read(ByteBuffer)
.- Specified by:
readMore
in 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:WrappedByteChannel
This function returns the blocking state of the channel- Specified by:
isBlocking
in interfaceWrappedByteChannel
- Returns:
- is the channel blocking
-