APIdia Launch Partner
Top Inners Methods
jdk.internal.net.http.websocket

public Interface RawChannel

extends Closeable
Known Direct Implementers
jdk.internal.net.http.RawChannelTube
Imports
java.io.Closeable, .IOException, java.nio.ByteBuffer, java.nio.channels.ClosedChannelException

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
public static interface

Method Summary

Modifier and TypeMethod and Description
public void
close()

Redeclares java.io.Closeable.close.

Closes this channel.

public ByteBuffer

Returns:

the initial bytes
initialByteBuffer
()

Hands over the initial bytes.

public ByteBuffer
read()

public void
public void
shutdownInput()

Shutdown the connection for reading without closing the channel.

public void
shutdownOutput()

Shutdown the connection for writing without closing the channel.

public long
write(ByteBuffer[] srcs, int offset, int length)

Method Detail

closeback to summary
public void close() throws IOException

Redeclares java.io.Closeable.close.

Closes this channel.

Annotations
@Override
Exceptions
IOException:
If an I/O error occurs
initialByteBufferback to summary
public ByteBuffer initialByteBuffer() throws IllegalStateException

Hands over the initial bytes. Once the bytes have been returned they are no longer available and the method will throw an IllegalStateException on each subsequent invocation.

Returns:ByteBuffer

the initial bytes

Exceptions
IllegalStateException:
if the method has been already invoked
readback to summary
public ByteBuffer read() throws IOException
registerEventback to summary
public void registerEvent(RawChannel.RawEvent event) throws IOException
shutdownInputback to summary
public void shutdownInput() throws IOException

Shutdown the connection for reading without closing the channel.

Once shutdown for reading then further reads on the channel will return null, the end-of-stream indication. If the input side of the connection is already shutdown then invoking this method has no effect.

Exceptions
IOException:
If some other I/O error occurs
ClosedChannelException:
If this channel is closed
shutdownOutputback to summary
public void shutdownOutput() throws IOException

Shutdown the connection for writing without closing the channel.

Once shutdown for writing then further attempts to write to the channel will throw ClosedChannelException. If the output side of the connection is already shutdown then invoking this method has no effect.

Exceptions
IOException:
If some other I/O error occurs
ClosedChannelException:
If this channel is closed
writeback to summary
public long write(ByteBuffer[] srcs, int offset, int length) throws IOException
jdk.internal.net.http.websocket back to summary

public Interface RawChannel.Provider

Known Direct Implementers
jdk.internal.net.http.HttpResponseImpl, jdk.internal.net.http.HttpResponseImpl.RawChannelProvider

Method Summary

Modifier and TypeMethod and Description
public void
public RawChannel

Method Detail

closeRawChannelback to summary
public void closeRawChannel() throws IOException
rawChannelback to summary
public RawChannel rawChannel() throws IOException
jdk.internal.net.http.websocket back to summary

public Interface RawChannel.RawEvent

Known Direct Implementers
jdk.internal.net.http.websocket.TransportImpl.WriteEvent, jdk.internal.net.http.websocket.TransportImpl.ReadEvent

Method Summary

Modifier and TypeMethod and Description
public void
public int

Method Detail

handleback to summary
public void handle()
interestOpsback to summary
public int interestOps()