RingJavafor Ring

java.nio.channels

56 classes of the module java.base.

Load them with:

using {
	"java.nio.channels"
}

All packages

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

MethodRing callJava overloads
closeclose()void close()
isOpenisOpen()boolean isOpen()
readread(dst)
read([dst,attachment,handler])
read([ :dst = v, :attachment = v, :handler = v ])
Future read(ByteBuffer dst)
void read(ByteBuffer dst, Object attachment, CompletionHandler handler)
writewrite(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

MethodRing callJava overloads
closeclose()void close()
isOpenisOpen()boolean isOpen()

AsynchronousChannelGroup#

abstract · extends Object · java.nio.channels.AsynchronousChannelGroup

Methods

MethodRing callJava overloads
awaitTerminationawaitTermination(timeout,unit)boolean awaitTermination(long timeout, TimeUnit unit)
isShutdownisShutdown()boolean isShutdown()
isTerminatedisTerminated()boolean isTerminated()
providerprovider()AsynchronousChannelProvider provider()
shutdownshutdown()void shutdown()
shutdownNowshutdownNow()void shutdownNow()
withCachedThreadPoolwithCachedThreadPool(executor,initialSize)static AsynchronousChannelGroup withCachedThreadPool(ExecutorService executor, int initialSize)
withFixedThreadPoolwithFixedThreadPool(nThreads,threadFactory)static AsynchronousChannelGroup withFixedThreadPool(int nThreads, ThreadFactory threadFactory)
withThreadPoolwithThreadPool(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

MethodRing callJava 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)
closeclose()void close()
forceforce(metaData)void force(boolean metaData)
isOpenisOpen()boolean isOpen()
locklock()Future lock()
openopen([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)
readread([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)
sizesize()long size()
truncatetruncate(size)AsynchronousFileChannel truncate(long size)
tryLocktryLock()FileLock tryLock()
writewrite([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

MethodRing callJava overloads
@accept@accept([attachment,handler])
@accept([ :attachment = v, :handler = v ])
void accept(Object attachment, CompletionHandler handler)
@open@open(group)static AsynchronousServerSocketChannel open(AsynchronousChannelGroup group)
acceptaccept()Future accept()
bindbind(local)
bind([local,backlog])
bind([ :local = v, :backlog = v ])
AsynchronousServerSocketChannel bind(SocketAddress local)
AsynchronousServerSocketChannel bind(SocketAddress local, int backlog)
closeclose()void close()
getLocalAddressgetLocalAddress()SocketAddress getLocalAddress()
getOptiongetOption(name)Object getOption(SocketOption name)
isOpenisOpen()boolean isOpen()
openopen()static AsynchronousServerSocketChannel open()
providerprovider()AsynchronousChannelProvider provider()
setOptionsetOption(name,value)AsynchronousServerSocketChannel setOption(SocketOption name, Object value)
supportedOptionssupportedOptions()Set supportedOptions()

The methods and fields of Object are inherited.

AsynchronousSocketChannel#

abstract · extends Object · java.nio.channels.AsynchronousSocketChannel

Implements: AsynchronousByteChannel, NetworkChannel

Methods

MethodRing callJava overloads
@open@open(group)static AsynchronousSocketChannel open(AsynchronousChannelGroup group)
bindbind(local)AsynchronousSocketChannel bind(SocketAddress local)
closeclose()void close()
connectconnect(remote)
connect([remote,attachment,handler])
connect([ :remote = v, :attachment = v, :handler = v ])
Future connect(SocketAddress remote)
void connect(SocketAddress remote, Object attachment, CompletionHandler handler)
getLocalAddressgetLocalAddress()SocketAddress getLocalAddress()
getOptiongetOption(name)Object getOption(SocketOption name)
getRemoteAddressgetRemoteAddress()SocketAddress getRemoteAddress()
isOpenisOpen()boolean isOpen()
openopen()static AsynchronousSocketChannel open()
providerprovider()AsynchronousChannelProvider provider()
readread(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)
setOptionsetOption(name,value)AsynchronousSocketChannel setOption(SocketOption name, Object value)
shutdownInputshutdownInput()AsynchronousSocketChannel shutdownInput()
shutdownOutputshutdownOutput()AsynchronousSocketChannel shutdownOutput()
supportedOptionssupportedOptions()Set supportedOptions()
writewrite(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

MethodRing callJava overloads
closeclose()void close()
isOpenisOpen()boolean isOpen()
readread(dst)int read(ByteBuffer dst)
writewrite(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

MethodRing callJava overloads
closeclose()void close()
isOpenisOpen()boolean isOpen()

Channels#

class final · extends Object · java.nio.channels.Channels

Methods

MethodRing callJava overloads
newChannelnewChannel(in)static ReadableByteChannel newChannel(InputStream in)
static WritableByteChannel newChannel(OutputStream out)
newInputStreamnewInputStream(ch)static InputStream newInputStream(ReadableByteChannel ch)
static InputStream newInputStream(AsynchronousByteChannel ch)
newOutputStreamnewOutputStream(ch)static OutputStream newOutputStream(AsynchronousByteChannel ch)
static OutputStream newOutputStream(WritableByteChannel ch)
newReadernewReader([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)
newWriternewWriter([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

MethodRing callJava overloads
completedcompleted(result,attachment)void completed(Object result, Object attachment)
failedfailed(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

MethodRing callJava overloads
@open@open(family)static DatagramChannel open(ProtocolFamily family)
bindbind(local)DatagramChannel bind(SocketAddress local)
connectconnect(remote)DatagramChannel connect(SocketAddress remote)
disconnectdisconnect()DatagramChannel disconnect()
getLocalAddressgetLocalAddress()SocketAddress getLocalAddress()
getOptiongetOption(name)Object getOption(SocketOption name)
getRemoteAddressgetRemoteAddress()SocketAddress getRemoteAddress()
isConnectedisConnected()boolean isConnected()
joinjoin([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)
openopen()static DatagramChannel open()
readread(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)
receivereceive(dst)SocketAddress receive(ByteBuffer dst)
sendsend(src,target)int send(ByteBuffer src, SocketAddress target)
setOptionsetOption(name,value)DatagramChannel setOption(SocketOption name, Object value)
socketsocket()DatagramSocket socket()
supportedOptionssupportedOptions()Set supportedOptions()
writewrite(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

MethodRing callJava 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)
forceforce(metaData)void force(boolean metaData)
locklock()FileLock lock()
mapmap([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)
openopen([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)
positionposition()long position()
readread(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)
sizesize()long size()
transferFromtransferFrom(src,position,count)long transferFrom(ReadableByteChannel src, long position, long count)
transferTotransferTo(position,count,target)long transferTo(long position, long count, WritableByteChannel target)
truncatetruncate(size)FileChannel truncate(long size)
tryLocktryLock()FileLock tryLock()
writewrite(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

NameTypeAccessIn Ring
READ_ONLYMapModeconstant · statico.READ_ONLY
READ_WRITEMapModeconstant · statico.READ_WRITE
PRIVATEMapModeconstant · statico.@PRIVATE

The methods and fields of Object are inherited.

FileLock#

abstract · extends Object · java.nio.channels.FileLock

Implements: AutoCloseable

Methods

MethodRing callJava overloads
acquiredByacquiredBy()Channel acquiredBy()
channelchannel()FileChannel channel()
closeclose()void close()
isSharedisShared()boolean isShared()
isValidisValid()boolean isValid()
overlapsoverlaps(position,size)boolean overlaps(long position, long size)
positionposition()long position()
releaserelease()void release()
sizesize()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

MethodRing callJava overloads
closeclose()void close()
isOpenisOpen()boolean isOpen()
writewrite(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

MethodRing callJava overloads
closeclose()void close()
isOpenisOpen()boolean isOpen()

MembershipKey#

abstract · extends Object · java.nio.channels.MembershipKey

Methods

MethodRing callJava overloads
blockblock(source)MembershipKey block(InetAddress source)
channelchannel()MulticastChannel channel()
dropdrop()void drop()
groupgroup()InetAddress group()
isValidisValid()boolean isValid()
networkInterfacenetworkInterface()NetworkInterface networkInterface()
sourceAddresssourceAddress()InetAddress sourceAddress()
unblockunblock(source)MembershipKey unblock(InetAddress source)

The methods and fields of Object are inherited.

MulticastChannel#

interface · java.nio.channels.MulticastChannel

Extends: NetworkChannel

Methods

MethodRing callJava overloads
bindbind(local)NetworkChannel bind(SocketAddress local)
closeclose()void close()
getLocalAddressgetLocalAddress()SocketAddress getLocalAddress()
getOptiongetOption(name)Object getOption(SocketOption name)
isOpenisOpen()boolean isOpen()
joinjoin([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)
setOptionsetOption(name,value)NetworkChannel setOption(SocketOption name, Object value)
supportedOptionssupportedOptions()Set supportedOptions()

NetworkChannel#

interface · java.nio.channels.NetworkChannel

Extends: Channel

Methods

MethodRing callJava overloads
bindbind(local)NetworkChannel bind(SocketAddress local)
closeclose()void close()
getLocalAddressgetLocalAddress()SocketAddress getLocalAddress()
getOptiongetOption(name)Object getOption(SocketOption name)
isOpenisOpen()boolean isOpen()
setOptionsetOption(name,value)NetworkChannel setOption(SocketOption name, Object value)
supportedOptionssupportedOptions()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

MethodRing callJava overloads
openopen()static Pipe open()
sinksink()SinkChannel sink()
sourcesource()SourceChannel source()

The methods and fields of Object are inherited.

PipeSinkChannel#

abstract · extends AbstractSelectableChannel · java.nio.channels.Pipe$SinkChannel

Implements: WritableByteChannel, GatheringByteChannel

Methods

MethodRing callJava overloads
writewrite(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

MethodRing callJava overloads
readread(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

MethodRing callJava overloads
closeclose()void close()
isOpenisOpen()boolean isOpen()
readread(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

MethodRing callJava overloads
closeclose()void close()
isOpenisOpen()boolean isOpen()
readread(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

MethodRing callJava overloads
@position@position(newPosition)SeekableByteChannel position(long newPosition)
closeclose()void close()
isOpenisOpen()boolean isOpen()
positionposition()long position()
readread(dst)int read(ByteBuffer dst)
sizesize()long size()
truncatetruncate(size)SeekableByteChannel truncate(long size)
writewrite(src)int write(ByteBuffer src)

SelectableChannel#

abstract · extends AbstractInterruptibleChannel · java.nio.channels.SelectableChannel

Implements: Channel

Methods

MethodRing callJava overloads
blockingLockblockingLock()Object blockingLock()
configureBlockingconfigureBlocking(block)SelectableChannel configureBlocking(boolean block)
isBlockingisBlocking()boolean isBlocking()
isRegisteredisRegistered()boolean isRegistered()
keyForkeyFor(sel)SelectionKey keyFor(Selector sel)
providerprovider()SelectorProvider provider()
registerregister([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)
validOpsvalidOps()int validOps()

The methods and fields of AbstractInterruptibleChannel are inherited.

SelectionKey#

abstract · extends Object · java.nio.channels.SelectionKey

Fields

NameTypeAccessIn Ring
OP_READintconstant · statico.OP_READ
OP_WRITEintconstant · statico.OP_WRITE
OP_CONNECTintconstant · statico.OP_CONNECT
OP_ACCEPTintconstant · statico.OP_ACCEPT

Methods

MethodRing callJava overloads
@interestOps@interestOps(ops)SelectionKey interestOps(int ops)
attachattach(ob)Object attach(Object ob)
attachmentattachment()Object attachment()
cancelcancel()void cancel()
channelchannel()SelectableChannel channel()
interestOpsinterestOps()int interestOps()
interestOpsAndinterestOpsAnd(ops)int interestOpsAnd(int ops)
interestOpsOrinterestOpsOr(ops)int interestOpsOr(int ops)
isAcceptableisAcceptable()boolean isAcceptable()
isConnectableisConnectable()boolean isConnectable()
isReadableisReadable()boolean isReadable()
isValidisValid()boolean isValid()
isWritableisWritable()boolean isWritable()
readyOpsreadyOps()int readyOps()
selectorselector()Selector selector()

The methods and fields of Object are inherited.

Selector#

abstract · extends Object · java.nio.channels.Selector

Implements: Closeable

Methods

MethodRing callJava 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)
closeclose()void close()
isOpenisOpen()boolean isOpen()
keyskeys()Set keys()
openopen()static Selector open()
providerprovider()SelectorProvider provider()
selectselect()int select()
selectedKeysselectedKeys()Set selectedKeys()
selectNowselectNow()int selectNow()
wakeupwakeup()Selector wakeup()

The methods and fields of Object are inherited.

ServerSocketChannel#

abstract · extends AbstractSelectableChannel · java.nio.channels.ServerSocketChannel

Implements: NetworkChannel

Methods

MethodRing callJava overloads
@open@open(family)static ServerSocketChannel open(ProtocolFamily family)
acceptaccept()SocketChannel accept()
bindbind(local)
bind([local,backlog])
bind([ :local = v, :backlog = v ])
ServerSocketChannel bind(SocketAddress local)
ServerSocketChannel bind(SocketAddress local, int backlog)
getLocalAddressgetLocalAddress()SocketAddress getLocalAddress()
getOptiongetOption(name)Object getOption(SocketOption name)
openopen()static ServerSocketChannel open()
setOptionsetOption(name,value)ServerSocketChannel setOption(SocketOption name, Object value)
socketsocket()ServerSocket socket()
supportedOptionssupportedOptions()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

MethodRing callJava overloads
@open@open(family)static SocketChannel open(ProtocolFamily family)
static SocketChannel open(SocketAddress remote)
bindbind(local)SocketChannel bind(SocketAddress local)
connectconnect(remote)boolean connect(SocketAddress remote)
finishConnectfinishConnect()boolean finishConnect()
getLocalAddressgetLocalAddress()SocketAddress getLocalAddress()
getOptiongetOption(name)Object getOption(SocketOption name)
getRemoteAddressgetRemoteAddress()SocketAddress getRemoteAddress()
isConnectedisConnected()boolean isConnected()
isConnectionPendingisConnectionPending()boolean isConnectionPending()
openopen()static SocketChannel open()
readread(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)
setOptionsetOption(name,value)SocketChannel setOption(SocketOption name, Object value)
shutdownInputshutdownInput()SocketChannel shutdownInput()
shutdownOutputshutdownOutput()SocketChannel shutdownOutput()
socketsocket()Socket socket()
supportedOptionssupportedOptions()Set supportedOptions()
writewrite(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

MethodRing callJava overloads
closeclose()void close()
isOpenisOpen()boolean isOpen()
writewrite(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.

RingJava - use Java classes and methods from Ring programs.