java.nio.channels
56 classes of the module java.base.
Load them with:
using {
"java.nio.channels"
}
AcceptPendingException#
class · extends IllegalStateException · java.nio.channels.AcceptPendingException
Constructors
new AcceptPendingException() |
Ring: new AcceptPendingException(args) uses the constructor with the fewest parameters (at least one); new AcceptPendingException makes the object with the constructor without parameters; the others: (new AcceptPendingException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of IllegalStateException are inherited.
AlreadyBoundException#
class · extends IllegalStateException · java.nio.channels.AlreadyBoundException
Constructors
new AlreadyBoundException() |
Ring: new AlreadyBoundException(args) uses the constructor with the fewest parameters (at least one); new AlreadyBoundException makes the object with the constructor without parameters; the others: (new AlreadyBoundException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of IllegalStateException are inherited.
AlreadyConnectedException#
class · extends IllegalStateException · java.nio.channels.AlreadyConnectedException
Constructors
new AlreadyConnectedException() |
Ring: new AlreadyConnectedException(args) uses the constructor with the fewest parameters (at least one); new AlreadyConnectedException makes the object with the constructor without parameters; the others: (new AlreadyConnectedException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of IllegalStateException are inherited.
AsynchronousByteChannel#
interface · java.nio.channels.AsynchronousByteChannel
Extends: AsynchronousChannel
Methods
| Method | Ring call | Java overloads |
|---|---|---|
close | close() | void close() |
isOpen | isOpen() | boolean isOpen() |
read | read(dst)read([dst,attachment,handler])read([ :dst = v, :attachment = v, :handler = v ]) | Future read(ByteBuffer dst)void read(ByteBuffer dst, Object attachment, CompletionHandler handler) |
write | write(src)write([src,attachment,handler])write([ :src = v, :attachment = v, :handler = v ]) | Future write(ByteBuffer src)void write(ByteBuffer src, Object attachment, CompletionHandler handler) |
AsynchronousChannel#
interface · java.nio.channels.AsynchronousChannel
Extends: Channel
Methods
| Method | Ring call | Java overloads |
|---|---|---|
close | close() | void close() |
isOpen | isOpen() | boolean isOpen() |
AsynchronousChannelGroup#
abstract · extends Object · java.nio.channels.AsynchronousChannelGroup
Methods
| Method | Ring call | Java overloads |
|---|---|---|
awaitTermination | awaitTermination(timeout,unit) | boolean awaitTermination(long timeout, TimeUnit unit) |
isShutdown | isShutdown() | boolean isShutdown() |
isTerminated | isTerminated() | boolean isTerminated() |
provider | provider() | AsynchronousChannelProvider provider() |
shutdown | shutdown() | void shutdown() |
shutdownNow | shutdownNow() | void shutdownNow() |
withCachedThreadPool | withCachedThreadPool(executor,initialSize) | static AsynchronousChannelGroup withCachedThreadPool(ExecutorService executor, int initialSize) |
withFixedThreadPool | withFixedThreadPool(nThreads,threadFactory) | static AsynchronousChannelGroup withFixedThreadPool(int nThreads, ThreadFactory threadFactory) |
withThreadPool | withThreadPool(executor) | static AsynchronousChannelGroup withThreadPool(ExecutorService executor) |
The methods and fields of Object are inherited.
AsynchronousCloseException#
class · extends ClosedChannelException · java.nio.channels.AsynchronousCloseException
Constructors
new AsynchronousCloseException() |
Ring: new AsynchronousCloseException(args) uses the constructor with the fewest parameters (at least one); new AsynchronousCloseException makes the object with the constructor without parameters; the others: (new AsynchronousCloseException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of ClosedChannelException are inherited.
AsynchronousFileChannel#
abstract · extends Object · java.nio.channels.AsynchronousFileChannel
Implements: AsynchronousChannel
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@lock | @lock([attachment,handler])@lock([ :attachment = v, :handler = v ])@lock([position,size,shared])@lock([ :position = v, :size = v, :shared = v ])@lock([position,size,shared,attachment,handler])@lock([ :position = v, :size = v, :shared = v, :attachment = v, :handler = v ]) | void lock(Object attachment, CompletionHandler handler)Future lock(long position, long size, boolean shared)void lock(long position, long size, boolean shared, Object attachment, CompletionHandler handler) |
@tryLock | @tryLock([position,size,shared])@tryLock([ :position = v, :size = v, :shared = v ]) | FileLock tryLock(long position, long size, boolean shared) |
close | close() | void close() |
force | force(metaData) | void force(boolean metaData) |
isOpen | isOpen() | boolean isOpen() |
lock | lock() | Future lock() |
open | open([file,options])open([ :file = v, :options = v ])open([file,options,executor,attrs])open([ :file = v, :options = v, :executor = v, :attrs = v ]) | static AsynchronousFileChannel open(Path file, OpenOption[] options)static AsynchronousFileChannel open(Path file, Set options, ExecutorService executor, FileAttribute[] attrs) |
read | read([dst,position])read([ :dst = v, :position = v ])read([dst,position,attachment,handler])read([ :dst = v, :position = v, :attachment = v, :handler = v ]) | Future read(ByteBuffer dst, long position)void read(ByteBuffer dst, long position, Object attachment, CompletionHandler handler) |
size | size() | long size() |
truncate | truncate(size) | AsynchronousFileChannel truncate(long size) |
tryLock | tryLock() | FileLock tryLock() |
write | write([src,position])write([ :src = v, :position = v ])write([src,position,attachment,handler])write([ :src = v, :position = v, :attachment = v, :handler = v ]) | Future write(ByteBuffer src, long position)void write(ByteBuffer src, long position, Object attachment, CompletionHandler handler) |
The methods and fields of Object are inherited.
AsynchronousServerSocketChannel#
abstract · extends Object · java.nio.channels.AsynchronousServerSocketChannel
Implements: AsynchronousChannel, NetworkChannel
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@accept | @accept([attachment,handler])@accept([ :attachment = v, :handler = v ]) | void accept(Object attachment, CompletionHandler handler) |
@open | @open(group) | static AsynchronousServerSocketChannel open(AsynchronousChannelGroup group) |
accept | accept() | Future accept() |
bind | bind(local)bind([local,backlog])bind([ :local = v, :backlog = v ]) | AsynchronousServerSocketChannel bind(SocketAddress local)AsynchronousServerSocketChannel bind(SocketAddress local, int backlog) |
close | close() | void close() |
getLocalAddress | getLocalAddress() | SocketAddress getLocalAddress() |
getOption | getOption(name) | Object getOption(SocketOption name) |
isOpen | isOpen() | boolean isOpen() |
open | open() | static AsynchronousServerSocketChannel open() |
provider | provider() | AsynchronousChannelProvider provider() |
setOption | setOption(name,value) | AsynchronousServerSocketChannel setOption(SocketOption name, Object value) |
supportedOptions | supportedOptions() | Set supportedOptions() |
The methods and fields of Object are inherited.
AsynchronousSocketChannel#
abstract · extends Object · java.nio.channels.AsynchronousSocketChannel
Implements: AsynchronousByteChannel, NetworkChannel
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@open | @open(group) | static AsynchronousSocketChannel open(AsynchronousChannelGroup group) |
bind | bind(local) | AsynchronousSocketChannel bind(SocketAddress local) |
close | close() | void close() |
connect | connect(remote)connect([remote,attachment,handler])connect([ :remote = v, :attachment = v, :handler = v ]) | Future connect(SocketAddress remote)void connect(SocketAddress remote, Object attachment, CompletionHandler handler) |
getLocalAddress | getLocalAddress() | SocketAddress getLocalAddress() |
getOption | getOption(name) | Object getOption(SocketOption name) |
getRemoteAddress | getRemoteAddress() | SocketAddress getRemoteAddress() |
isOpen | isOpen() | boolean isOpen() |
open | open() | static AsynchronousSocketChannel open() |
provider | provider() | AsynchronousChannelProvider provider() |
read | read(dst)read([dst,attachment,handler])read([ :dst = v, :attachment = v, :handler = v ])read([dst,timeout,unit,attachment,handler])read([ :dst = v, :timeout = v, :unit = v, :attachment = v, :handler = v ])read([dsts,offset,length,timeout,unit,attachment,handler])read([ :dsts = v, :offset = v, :length = v, :timeout = v, :unit = v, :attachment = v, :handler = v ]) | Future read(ByteBuffer dst)void read(ByteBuffer dst, Object attachment, CompletionHandler handler)void read(ByteBuffer dst, long timeout, TimeUnit unit, Object attachment, CompletionHandler handler)void read(ByteBuffer[] dsts, int offset, int length, long timeout, TimeUnit unit, Object attachment, CompletionHandler handler) |
setOption | setOption(name,value) | AsynchronousSocketChannel setOption(SocketOption name, Object value) |
shutdownInput | shutdownInput() | AsynchronousSocketChannel shutdownInput() |
shutdownOutput | shutdownOutput() | AsynchronousSocketChannel shutdownOutput() |
supportedOptions | supportedOptions() | Set supportedOptions() |
write | write(src)write([src,attachment,handler])write([ :src = v, :attachment = v, :handler = v ])write([src,timeout,unit,attachment,handler])write([ :src = v, :timeout = v, :unit = v, :attachment = v, :handler = v ])write([srcs,offset,length,timeout,unit,attachment,handler])write([ :srcs = v, :offset = v, :length = v, :timeout = v, :unit = v, :attachment = v, :handler = v ]) | Future write(ByteBuffer src)void write(ByteBuffer src, Object attachment, CompletionHandler handler)void write(ByteBuffer src, long timeout, TimeUnit unit, Object attachment, CompletionHandler handler)void write(ByteBuffer[] srcs, int offset, int length, long timeout, TimeUnit unit, Object attachment, CompletionHandler handler) |
The methods and fields of Object are inherited.
ByteChannel#
interface · java.nio.channels.ByteChannel
Extends: ReadableByteChannel, WritableByteChannel
Methods
| Method | Ring call | Java overloads |
|---|---|---|
close | close() | void close() |
isOpen | isOpen() | boolean isOpen() |
read | read(dst) | int read(ByteBuffer dst) |
write | write(src) | int write(ByteBuffer src) |
CancelledKeyException#
class · extends IllegalStateException · java.nio.channels.CancelledKeyException
Constructors
new CancelledKeyException() |
Ring: new CancelledKeyException(args) uses the constructor with the fewest parameters (at least one); new CancelledKeyException makes the object with the constructor without parameters; the others: (new CancelledKeyException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of IllegalStateException are inherited.
Channel#
interface · java.nio.channels.Channel
Extends: Closeable
Methods
| Method | Ring call | Java overloads |
|---|---|---|
close | close() | void close() |
isOpen | isOpen() | boolean isOpen() |
Channels#
class final · extends Object · java.nio.channels.Channels
Methods
| Method | Ring call | Java overloads |
|---|---|---|
newChannel | newChannel(in) | static ReadableByteChannel newChannel(InputStream in)static WritableByteChannel newChannel(OutputStream out) |
newInputStream | newInputStream(ch) | static InputStream newInputStream(ReadableByteChannel ch)static InputStream newInputStream(AsynchronousByteChannel ch) |
newOutputStream | newOutputStream(ch) | static OutputStream newOutputStream(AsynchronousByteChannel ch)static OutputStream newOutputStream(WritableByteChannel ch) |
newReader | newReader([ch,charset])newReader([ :ch = v, :charset = v ])newReader([ch,dec,minBufferCap])newReader([ :ch = v, :dec = v, :minBufferCap = v ]) | static Reader newReader(ReadableByteChannel ch, Charset charset)static Reader newReader(ReadableByteChannel ch, String csName)static Reader newReader(ReadableByteChannel ch, CharsetDecoder dec, int minBufferCap) |
newWriter | newWriter([ch,csName])newWriter([ :ch = v, :csName = v ])newWriter([ch,enc,minBufferCap])newWriter([ :ch = v, :enc = v, :minBufferCap = v ]) | static Writer newWriter(WritableByteChannel ch, String csName)static Writer newWriter(WritableByteChannel ch, Charset charset)static Writer newWriter(WritableByteChannel ch, CharsetEncoder enc, int minBufferCap) |
The methods and fields of Object are inherited.
ClosedByInterruptException#
class · extends AsynchronousCloseException · java.nio.channels.ClosedByInterruptException
Constructors
new ClosedByInterruptException() |
Ring: new ClosedByInterruptException(args) uses the constructor with the fewest parameters (at least one); new ClosedByInterruptException makes the object with the constructor without parameters; the others: (new ClosedByInterruptException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of AsynchronousCloseException are inherited.
ClosedChannelException#
class · extends IOException · java.nio.channels.ClosedChannelException
Constructors
new ClosedChannelException() |
Ring: new ClosedChannelException(args) uses the constructor with the fewest parameters (at least one); new ClosedChannelException makes the object with the constructor without parameters; the others: (new ClosedChannelException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of IOException are inherited.
ClosedSelectorException#
class · extends IllegalStateException · java.nio.channels.ClosedSelectorException
Constructors
new ClosedSelectorException() |
Ring: new ClosedSelectorException(args) uses the constructor with the fewest parameters (at least one); new ClosedSelectorException makes the object with the constructor without parameters; the others: (new ClosedSelectorException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of IllegalStateException are inherited.
CompletionHandler#
interface · java.nio.channels.CompletionHandler
Methods
| Method | Ring call | Java overloads |
|---|---|---|
completed | completed(result,attachment) | void completed(Object result, Object attachment) |
failed | failed(exc,attachment) | void failed(Throwable exc, Object attachment) |
ConnectionPendingException#
class · extends IllegalStateException · java.nio.channels.ConnectionPendingException
Constructors
new ConnectionPendingException() |
Ring: new ConnectionPendingException(args) uses the constructor with the fewest parameters (at least one); new ConnectionPendingException makes the object with the constructor without parameters; the others: (new ConnectionPendingException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of IllegalStateException are inherited.
DatagramChannel#
abstract · extends AbstractSelectableChannel · java.nio.channels.DatagramChannel
Implements: ByteChannel, ScatteringByteChannel, GatheringByteChannel, MulticastChannel
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@open | @open(family) | static DatagramChannel open(ProtocolFamily family) |
bind | bind(local) | DatagramChannel bind(SocketAddress local) |
connect | connect(remote) | DatagramChannel connect(SocketAddress remote) |
disconnect | disconnect() | DatagramChannel disconnect() |
getLocalAddress | getLocalAddress() | SocketAddress getLocalAddress() |
getOption | getOption(name) | Object getOption(SocketOption name) |
getRemoteAddress | getRemoteAddress() | SocketAddress getRemoteAddress() |
isConnected | isConnected() | boolean isConnected() |
join | join([group,interf])join([ :group = v, :interf = v ])join([group,interf,source])join([ :group = v, :interf = v, :source = v ]) | MembershipKey join(InetAddress group, NetworkInterface interf)MembershipKey join(InetAddress group, NetworkInterface interf, InetAddress source) |
open | open() | static DatagramChannel open() |
read | read(dst)read([dsts,offset,length])read([ :dsts = v, :offset = v, :length = v ]) | int read(ByteBuffer dst)long read(ByteBuffer[] dsts)long read(ByteBuffer[] dsts, int offset, int length) |
receive | receive(dst) | SocketAddress receive(ByteBuffer dst) |
send | send(src,target) | int send(ByteBuffer src, SocketAddress target) |
setOption | setOption(name,value) | DatagramChannel setOption(SocketOption name, Object value) |
socket | socket() | DatagramSocket socket() |
supportedOptions | supportedOptions() | Set supportedOptions() |
write | write(srcs)write([srcs,offset,length])write([ :srcs = v, :offset = v, :length = v ]) | long write(ByteBuffer[] srcs)int write(ByteBuffer src)long write(ByteBuffer[] srcs, int offset, int length) |
The methods and fields of AbstractSelectableChannel are inherited.
FileChannel#
abstract · extends AbstractInterruptibleChannel · java.nio.channels.FileChannel
Implements: SeekableByteChannel, GatheringByteChannel, ScatteringByteChannel
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@lock | @lock([position,size,shared])@lock([ :position = v, :size = v, :shared = v ]) | FileLock lock(long position, long size, boolean shared) |
@position | @position(newPosition) | FileChannel position(long newPosition) |
@tryLock | @tryLock([position,size,shared])@tryLock([ :position = v, :size = v, :shared = v ]) | FileLock tryLock(long position, long size, boolean shared) |
force | force(metaData) | void force(boolean metaData) |
lock | lock() | FileLock lock() |
map | map([mode,position,size])map([ :mode = v, :position = v, :size = v ])map([mode,offset,size,arena])map([ :mode = v, :offset = v, :size = v, :arena = v ]) | MappedByteBuffer map(MapMode mode, long position, long size)MemorySegment map(MapMode mode, long offset, long size, Arena arena) |
open | open([path,options])open([ :path = v, :options = v ])open([path,options,attrs])open([ :path = v, :options = v, :attrs = v ]) | static FileChannel open(Path path, OpenOption[] options)static FileChannel open(Path path, Set options, FileAttribute[] attrs) |
position | position() | long position() |
read | read(dst)read([dst,position])read([ :dst = v, :position = v ])read([dsts,offset,length])read([ :dsts = v, :offset = v, :length = v ]) | int read(ByteBuffer dst)long read(ByteBuffer[] dsts)int read(ByteBuffer dst, long position)long read(ByteBuffer[] dsts, int offset, int length) |
size | size() | long size() |
transferFrom | transferFrom(src,position,count) | long transferFrom(ReadableByteChannel src, long position, long count) |
transferTo | transferTo(position,count,target) | long transferTo(long position, long count, WritableByteChannel target) |
truncate | truncate(size) | FileChannel truncate(long size) |
tryLock | tryLock() | FileLock tryLock() |
write | write(srcs)write([src,position])write([ :src = v, :position = v ])write([srcs,offset,length])write([ :srcs = v, :offset = v, :length = v ]) | long write(ByteBuffer[] srcs)int write(ByteBuffer src)int write(ByteBuffer src, long position)long write(ByteBuffer[] srcs, int offset, int length) |
The methods and fields of AbstractInterruptibleChannel are inherited.
FileChannelMapMode#
class · extends Object · java.nio.channels.FileChannel$MapMode
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
READ_ONLY | MapMode | constant · static | o.READ_ONLY |
READ_WRITE | MapMode | constant · static | o.READ_WRITE |
PRIVATE | MapMode | constant · static | o.@PRIVATE |
The methods and fields of Object are inherited.
FileLock#
abstract · extends Object · java.nio.channels.FileLock
Implements: AutoCloseable
Methods
| Method | Ring call | Java overloads |
|---|---|---|
acquiredBy | acquiredBy() | Channel acquiredBy() |
channel | channel() | FileChannel channel() |
close | close() | void close() |
isShared | isShared() | boolean isShared() |
isValid | isValid() | boolean isValid() |
overlaps | overlaps(position,size) | boolean overlaps(long position, long size) |
position | position() | long position() |
release | release() | void release() |
size | size() | long size() |
The methods and fields of Object are inherited.
FileLockInterruptionException#
class · extends IOException · java.nio.channels.FileLockInterruptionException
Constructors
new FileLockInterruptionException() |
Ring: new FileLockInterruptionException(args) uses the constructor with the fewest parameters (at least one); new FileLockInterruptionException makes the object with the constructor without parameters; the others: (new FileLockInterruptionException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of IOException are inherited.
GatheringByteChannel#
interface · java.nio.channels.GatheringByteChannel
Extends: WritableByteChannel
Methods
| Method | Ring call | Java overloads |
|---|---|---|
close | close() | void close() |
isOpen | isOpen() | boolean isOpen() |
write | write(srcs)write([srcs,offset,length])write([ :srcs = v, :offset = v, :length = v ]) | long write(ByteBuffer[] srcs)int write(ByteBuffer src)long write(ByteBuffer[] srcs, int offset, int length) |
IllegalBlockingModeException#
class · extends IllegalStateException · java.nio.channels.IllegalBlockingModeException
Constructors
new IllegalBlockingModeException() |
Ring: new IllegalBlockingModeException(args) uses the constructor with the fewest parameters (at least one); new IllegalBlockingModeException makes the object with the constructor without parameters; the others: (new IllegalBlockingModeException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of IllegalStateException are inherited.
IllegalChannelGroupException#
class · extends IllegalArgumentException · java.nio.channels.IllegalChannelGroupException
Constructors
new IllegalChannelGroupException() |
Ring: new IllegalChannelGroupException(args) uses the constructor with the fewest parameters (at least one); new IllegalChannelGroupException makes the object with the constructor without parameters; the others: (new IllegalChannelGroupException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of IllegalArgumentException are inherited.
IllegalSelectorException#
class · extends IllegalArgumentException · java.nio.channels.IllegalSelectorException
Constructors
new IllegalSelectorException() |
Ring: new IllegalSelectorException(args) uses the constructor with the fewest parameters (at least one); new IllegalSelectorException makes the object with the constructor without parameters; the others: (new IllegalSelectorException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of IllegalArgumentException are inherited.
InterruptedByTimeoutException#
class · extends IOException · java.nio.channels.InterruptedByTimeoutException
Constructors
new InterruptedByTimeoutException() |
Ring: new InterruptedByTimeoutException(args) uses the constructor with the fewest parameters (at least one); new InterruptedByTimeoutException makes the object with the constructor without parameters; the others: (new InterruptedByTimeoutException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of IOException are inherited.
InterruptibleChannel#
interface · java.nio.channels.InterruptibleChannel
Extends: Channel
Methods
| Method | Ring call | Java overloads |
|---|---|---|
close | close() | void close() |
isOpen | isOpen() | boolean isOpen() |
MembershipKey#
abstract · extends Object · java.nio.channels.MembershipKey
Methods
| Method | Ring call | Java overloads |
|---|---|---|
block | block(source) | MembershipKey block(InetAddress source) |
channel | channel() | MulticastChannel channel() |
drop | drop() | void drop() |
group | group() | InetAddress group() |
isValid | isValid() | boolean isValid() |
networkInterface | networkInterface() | NetworkInterface networkInterface() |
sourceAddress | sourceAddress() | InetAddress sourceAddress() |
unblock | unblock(source) | MembershipKey unblock(InetAddress source) |
The methods and fields of Object are inherited.
MulticastChannel#
interface · java.nio.channels.MulticastChannel
Extends: NetworkChannel
Methods
| Method | Ring call | Java overloads |
|---|---|---|
bind | bind(local) | NetworkChannel bind(SocketAddress local) |
close | close() | void close() |
getLocalAddress | getLocalAddress() | SocketAddress getLocalAddress() |
getOption | getOption(name) | Object getOption(SocketOption name) |
isOpen | isOpen() | boolean isOpen() |
join | join([group,interf])join([ :group = v, :interf = v ])join([group,interf,source])join([ :group = v, :interf = v, :source = v ]) | MembershipKey join(InetAddress group, NetworkInterface interf)MembershipKey join(InetAddress group, NetworkInterface interf, InetAddress source) |
setOption | setOption(name,value) | NetworkChannel setOption(SocketOption name, Object value) |
supportedOptions | supportedOptions() | Set supportedOptions() |
NetworkChannel#
interface · java.nio.channels.NetworkChannel
Extends: Channel
Methods
| Method | Ring call | Java overloads |
|---|---|---|
bind | bind(local) | NetworkChannel bind(SocketAddress local) |
close | close() | void close() |
getLocalAddress | getLocalAddress() | SocketAddress getLocalAddress() |
getOption | getOption(name) | Object getOption(SocketOption name) |
isOpen | isOpen() | boolean isOpen() |
setOption | setOption(name,value) | NetworkChannel setOption(SocketOption name, Object value) |
supportedOptions | supportedOptions() | Set supportedOptions() |
NoConnectionPendingException#
class · extends IllegalStateException · java.nio.channels.NoConnectionPendingException
Constructors
new NoConnectionPendingException() |
Ring: new NoConnectionPendingException(args) uses the constructor with the fewest parameters (at least one); new NoConnectionPendingException makes the object with the constructor without parameters; the others: (new NoConnectionPendingException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of IllegalStateException are inherited.
NonReadableChannelException#
class · extends IllegalStateException · java.nio.channels.NonReadableChannelException
Constructors
new NonReadableChannelException() |
Ring: new NonReadableChannelException(args) uses the constructor with the fewest parameters (at least one); new NonReadableChannelException makes the object with the constructor without parameters; the others: (new NonReadableChannelException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of IllegalStateException are inherited.
NonWritableChannelException#
class · extends IllegalStateException · java.nio.channels.NonWritableChannelException
Constructors
new NonWritableChannelException() |
Ring: new NonWritableChannelException(args) uses the constructor with the fewest parameters (at least one); new NonWritableChannelException makes the object with the constructor without parameters; the others: (new NonWritableChannelException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of IllegalStateException are inherited.
NotYetBoundException#
class · extends IllegalStateException · java.nio.channels.NotYetBoundException
Constructors
new NotYetBoundException() |
Ring: new NotYetBoundException(args) uses the constructor with the fewest parameters (at least one); new NotYetBoundException makes the object with the constructor without parameters; the others: (new NotYetBoundException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of IllegalStateException are inherited.
NotYetConnectedException#
class · extends IllegalStateException · java.nio.channels.NotYetConnectedException
Constructors
new NotYetConnectedException() |
Ring: new NotYetConnectedException(args) uses the constructor with the fewest parameters (at least one); new NotYetConnectedException makes the object with the constructor without parameters; the others: (new NotYetConnectedException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of IllegalStateException are inherited.
OverlappingFileLockException#
class · extends IllegalStateException · java.nio.channels.OverlappingFileLockException
Constructors
new OverlappingFileLockException() |
Ring: new OverlappingFileLockException(args) uses the constructor with the fewest parameters (at least one); new OverlappingFileLockException makes the object with the constructor without parameters; the others: (new OverlappingFileLockException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of IllegalStateException are inherited.
Pipe#
abstract · extends Object · java.nio.channels.Pipe
Methods
| Method | Ring call | Java overloads |
|---|---|---|
open | open() | static Pipe open() |
sink | sink() | SinkChannel sink() |
source | source() | SourceChannel source() |
The methods and fields of Object are inherited.
PipeSinkChannel#
abstract · extends AbstractSelectableChannel · java.nio.channels.Pipe$SinkChannel
Implements: WritableByteChannel, GatheringByteChannel
Methods
| Method | Ring call | Java overloads |
|---|---|---|
write | write(src)write([srcs,offset,length])write([ :srcs = v, :offset = v, :length = v ]) | int write(ByteBuffer src)long write(ByteBuffer[] srcs)long write(ByteBuffer[] srcs, int offset, int length) |
The methods and fields of AbstractSelectableChannel are inherited.
PipeSourceChannel#
abstract · extends AbstractSelectableChannel · java.nio.channels.Pipe$SourceChannel
Implements: ReadableByteChannel, ScatteringByteChannel
Methods
| Method | Ring call | Java overloads |
|---|---|---|
read | read(dst)read([dsts,offset,length])read([ :dsts = v, :offset = v, :length = v ]) | int read(ByteBuffer dst)long read(ByteBuffer[] dsts)long read(ByteBuffer[] dsts, int offset, int length) |
The methods and fields of AbstractSelectableChannel are inherited.
ReadableByteChannel#
interface · java.nio.channels.ReadableByteChannel
Extends: Channel
Methods
| Method | Ring call | Java overloads |
|---|---|---|
close | close() | void close() |
isOpen | isOpen() | boolean isOpen() |
read | read(dst) | int read(ByteBuffer dst) |
ReadPendingException#
class · extends IllegalStateException · java.nio.channels.ReadPendingException
Constructors
new ReadPendingException() |
Ring: new ReadPendingException(args) uses the constructor with the fewest parameters (at least one); new ReadPendingException makes the object with the constructor without parameters; the others: (new ReadPendingException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of IllegalStateException are inherited.
ScatteringByteChannel#
interface · java.nio.channels.ScatteringByteChannel
Extends: ReadableByteChannel
Methods
| Method | Ring call | Java overloads |
|---|---|---|
close | close() | void close() |
isOpen | isOpen() | boolean isOpen() |
read | read(dsts)read([dsts,offset,length])read([ :dsts = v, :offset = v, :length = v ]) | long read(ByteBuffer[] dsts)int read(ByteBuffer dst)long read(ByteBuffer[] dsts, int offset, int length) |
SeekableByteChannel#
interface · java.nio.channels.SeekableByteChannel
Extends: ByteChannel
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@position | @position(newPosition) | SeekableByteChannel position(long newPosition) |
close | close() | void close() |
isOpen | isOpen() | boolean isOpen() |
position | position() | long position() |
read | read(dst) | int read(ByteBuffer dst) |
size | size() | long size() |
truncate | truncate(size) | SeekableByteChannel truncate(long size) |
write | write(src) | int write(ByteBuffer src) |
SelectableChannel#
abstract · extends AbstractInterruptibleChannel · java.nio.channels.SelectableChannel
Implements: Channel
Methods
| Method | Ring call | Java overloads |
|---|---|---|
blockingLock | blockingLock() | Object blockingLock() |
configureBlocking | configureBlocking(block) | SelectableChannel configureBlocking(boolean block) |
isBlocking | isBlocking() | boolean isBlocking() |
isRegistered | isRegistered() | boolean isRegistered() |
keyFor | keyFor(sel) | SelectionKey keyFor(Selector sel) |
provider | provider() | SelectorProvider provider() |
register | register([sel,ops])register([ :sel = v, :ops = v ])register([sel,ops,att])register([ :sel = v, :ops = v, :att = v ]) | SelectionKey register(Selector sel, int ops)SelectionKey register(Selector sel, int ops, Object att) |
validOps | validOps() | int validOps() |
The methods and fields of AbstractInterruptibleChannel are inherited.
SelectionKey#
abstract · extends Object · java.nio.channels.SelectionKey
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
OP_READ | int | constant · static | o.OP_READ |
OP_WRITE | int | constant · static | o.OP_WRITE |
OP_CONNECT | int | constant · static | o.OP_CONNECT |
OP_ACCEPT | int | constant · static | o.OP_ACCEPT |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@interestOps | @interestOps(ops) | SelectionKey interestOps(int ops) |
attach | attach(ob) | Object attach(Object ob) |
attachment | attachment() | Object attachment() |
cancel | cancel() | void cancel() |
channel | channel() | SelectableChannel channel() |
interestOps | interestOps() | int interestOps() |
interestOpsAnd | interestOpsAnd(ops) | int interestOpsAnd(int ops) |
interestOpsOr | interestOpsOr(ops) | int interestOpsOr(int ops) |
isAcceptable | isAcceptable() | boolean isAcceptable() |
isConnectable | isConnectable() | boolean isConnectable() |
isReadable | isReadable() | boolean isReadable() |
isValid | isValid() | boolean isValid() |
isWritable | isWritable() | boolean isWritable() |
readyOps | readyOps() | int readyOps() |
selector | selector() | Selector selector() |
The methods and fields of Object are inherited.
Selector#
abstract · extends Object · java.nio.channels.Selector
Implements: Closeable
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@select | @select(action)@select([action,timeout])@select([ :action = v, :timeout = v ]) | int select(Consumer action)int select(long timeout)int select(Consumer action, long timeout) |
@selectNow | @selectNow(action) | int selectNow(Consumer action) |
close | close() | void close() |
isOpen | isOpen() | boolean isOpen() |
keys | keys() | Set keys() |
open | open() | static Selector open() |
provider | provider() | SelectorProvider provider() |
select | select() | int select() |
selectedKeys | selectedKeys() | Set selectedKeys() |
selectNow | selectNow() | int selectNow() |
wakeup | wakeup() | Selector wakeup() |
The methods and fields of Object are inherited.
ServerSocketChannel#
abstract · extends AbstractSelectableChannel · java.nio.channels.ServerSocketChannel
Implements: NetworkChannel
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@open | @open(family) | static ServerSocketChannel open(ProtocolFamily family) |
accept | accept() | SocketChannel accept() |
bind | bind(local)bind([local,backlog])bind([ :local = v, :backlog = v ]) | ServerSocketChannel bind(SocketAddress local)ServerSocketChannel bind(SocketAddress local, int backlog) |
getLocalAddress | getLocalAddress() | SocketAddress getLocalAddress() |
getOption | getOption(name) | Object getOption(SocketOption name) |
open | open() | static ServerSocketChannel open() |
setOption | setOption(name,value) | ServerSocketChannel setOption(SocketOption name, Object value) |
socket | socket() | ServerSocket socket() |
supportedOptions | supportedOptions() | Set supportedOptions() |
The methods and fields of AbstractSelectableChannel are inherited.
ShutdownChannelGroupException#
class · extends IllegalStateException · java.nio.channels.ShutdownChannelGroupException
Constructors
new ShutdownChannelGroupException() |
Ring: new ShutdownChannelGroupException(args) uses the constructor with the fewest parameters (at least one); new ShutdownChannelGroupException makes the object with the constructor without parameters; the others: (new ShutdownChannelGroupException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of IllegalStateException are inherited.
SocketChannel#
abstract · extends AbstractSelectableChannel · java.nio.channels.SocketChannel
Implements: ByteChannel, ScatteringByteChannel, GatheringByteChannel, NetworkChannel
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@open | @open(family) | static SocketChannel open(ProtocolFamily family)static SocketChannel open(SocketAddress remote) |
bind | bind(local) | SocketChannel bind(SocketAddress local) |
connect | connect(remote) | boolean connect(SocketAddress remote) |
finishConnect | finishConnect() | boolean finishConnect() |
getLocalAddress | getLocalAddress() | SocketAddress getLocalAddress() |
getOption | getOption(name) | Object getOption(SocketOption name) |
getRemoteAddress | getRemoteAddress() | SocketAddress getRemoteAddress() |
isConnected | isConnected() | boolean isConnected() |
isConnectionPending | isConnectionPending() | boolean isConnectionPending() |
open | open() | static SocketChannel open() |
read | read(dsts)read([dsts,offset,length])read([ :dsts = v, :offset = v, :length = v ]) | long read(ByteBuffer[] dsts)int read(ByteBuffer dst)long read(ByteBuffer[] dsts, int offset, int length) |
setOption | setOption(name,value) | SocketChannel setOption(SocketOption name, Object value) |
shutdownInput | shutdownInput() | SocketChannel shutdownInput() |
shutdownOutput | shutdownOutput() | SocketChannel shutdownOutput() |
socket | socket() | Socket socket() |
supportedOptions | supportedOptions() | Set supportedOptions() |
write | write(srcs)write([srcs,offset,length])write([ :srcs = v, :offset = v, :length = v ]) | long write(ByteBuffer[] srcs)int write(ByteBuffer src)long write(ByteBuffer[] srcs, int offset, int length) |
The methods and fields of AbstractSelectableChannel are inherited.
UnresolvedAddressException#
class · extends IllegalArgumentException · java.nio.channels.UnresolvedAddressException
Constructors
new UnresolvedAddressException() |
Ring: new UnresolvedAddressException(args) uses the constructor with the fewest parameters (at least one); new UnresolvedAddressException makes the object with the constructor without parameters; the others: (new UnresolvedAddressException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of IllegalArgumentException are inherited.
UnsupportedAddressTypeException#
class · extends IllegalArgumentException · java.nio.channels.UnsupportedAddressTypeException
Constructors
new UnsupportedAddressTypeException() |
Ring: new UnsupportedAddressTypeException(args) uses the constructor with the fewest parameters (at least one); new UnsupportedAddressTypeException makes the object with the constructor without parameters; the others: (new UnsupportedAddressTypeException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of IllegalArgumentException are inherited.
WritableByteChannel#
interface · java.nio.channels.WritableByteChannel
Extends: Channel
Methods
| Method | Ring call | Java overloads |
|---|---|---|
close | close() | void close() |
isOpen | isOpen() | boolean isOpen() |
write | write(src) | int write(ByteBuffer src) |
WritePendingException#
class · extends IllegalStateException · java.nio.channels.WritePendingException
Constructors
new WritePendingException() |
Ring: new WritePendingException(args) uses the constructor with the fewest parameters (at least one); new WritePendingException makes the object with the constructor without parameters; the others: (new WritePendingException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of IllegalStateException are inherited.