|
|||||||||
| Home >> All >> java >> nio >> [ channels overview ] | PREV NEXT | ||||||||
A
- AlreadyConnectedException - exception java.nio.channels.AlreadyConnectedException.
- AlreadyConnectedException() - Constructor for class java.nio.channels.AlreadyConnectedException
- Creates the exception
- AsynchronousCloseException - exception java.nio.channels.AsynchronousCloseException.
- AsynchronousCloseException() - Constructor for class java.nio.channels.AsynchronousCloseException
- Creates the exception
- accept() - Method in class java.nio.channels.ServerSocketChannel
- Accepts a connection made to this channel's socket.
- attach(Object) - Method in class java.nio.channels.SelectionKey
- Attaches obj to the key and returns the old attached object.
- attached - Variable in class java.nio.channels.SelectionKey
- attachment() - Method in class java.nio.channels.SelectionKey
- Returns the object attached to the key.
B
- ByteChannel - interface java.nio.channels.ByteChannel.
- blockingLock() - Method in class java.nio.channels.SelectableChannel
- Returns the lock of this channel.
C
- CancelledKeyException - exception java.nio.channels.CancelledKeyException.
- CancelledKeyException() - Constructor for class java.nio.channels.CancelledKeyException
- Creates the exception
- Channel - interface java.nio.channels.Channel.
- Channels - class java.nio.channels.Channels.
- Channels() - Constructor for class java.nio.channels.Channels
- This class isn't intended to be instantiated.
- ClosedByInterruptException - exception java.nio.channels.ClosedByInterruptException.
- ClosedByInterruptException() - Constructor for class java.nio.channels.ClosedByInterruptException
- Creates the exception
- ClosedChannelException - exception java.nio.channels.ClosedChannelException.
- ClosedChannelException() - Constructor for class java.nio.channels.ClosedChannelException
- Creates the exception
- ClosedSelectorException - exception java.nio.channels.ClosedSelectorException.
- ClosedSelectorException() - Constructor for class java.nio.channels.ClosedSelectorException
- Creates the exception
- ConnectionPendingException - exception java.nio.channels.ConnectionPendingException.
- ConnectionPendingException() - Constructor for class java.nio.channels.ConnectionPendingException
- Creates the exception
- cancel() - Method in class java.nio.channels.SelectionKey
- Requests that the registration of this key's channel with its selector be cancelled.
- channel - Variable in class java.nio.channels.FileLock
- channel() - Method in class java.nio.channels.FileLock
- Returns the file channel upon whose file this lock is held.
- channel() - Method in class java.nio.channels.SelectionKey
- return the channel attached to the key.
- close() - Method in interface java.nio.channels.Channel
- Closes this channel
- close() - Method in interface java.nio.channels.InterruptibleChannel
- Closes this channel
- close() - Method in class java.nio.channels.Selector
- Closes the selector.
- configureBlocking(boolean) - Method in class java.nio.channels.SelectableChannel
- Adjusts this channel's blocking mode.
- connect(SocketAddress) - Method in class java.nio.channels.DatagramChannel
- Connects this channel's socket.
- connect(SocketAddress) - Method in class java.nio.channels.SocketChannel
- Connects the channel's socket to the remote address.
- createStream(Class, Channel) - Static method in class java.nio.channels.VMChannels
D
- DatagramChannel - class java.nio.channels.DatagramChannel.
- DatagramChannel(SelectorProvider) - Constructor for class java.nio.channels.DatagramChannel
- Initializes the channel.
- disconnect() - Method in class java.nio.channels.DatagramChannel
- Disonnects this channel's socket.
F
- FileChannel - class java.nio.channels.FileChannel.
- FileChannel() - Constructor for class java.nio.channels.FileChannel
- Initializes the channel.
- FileChannel.MapMode - class java.nio.channels.FileChannel.MapMode.
- FileChannel.MapMode(int) - Constructor for class java.nio.channels.FileChannel.MapMode
- Initializes the MapMode.
- FileLock - class java.nio.channels.FileLock.
- FileLock(FileChannel, long, long, boolean) - Constructor for class java.nio.channels.FileLock
- Initializes the file lock.
- FileLockInterruptionException - exception java.nio.channels.FileLockInterruptionException.
- FileLockInterruptionException() - Constructor for class java.nio.channels.FileLockInterruptionException
- Creates the exception
- finishConnect() - Method in class java.nio.channels.SocketChannel
- Finishes the process of connecting a socket channel.
- force(boolean) - Method in class java.nio.channels.FileChannel
- msync with the disk
G
- GatheringByteChannel - interface java.nio.channels.GatheringByteChannel.
I
- IllegalBlockingModeException - exception java.nio.channels.IllegalBlockingModeException.
- IllegalBlockingModeException() - Constructor for class java.nio.channels.IllegalBlockingModeException
- Creates the exception
- IllegalSelectorException - exception java.nio.channels.IllegalSelectorException.
- IllegalSelectorException() - Constructor for class java.nio.channels.IllegalSelectorException
- Creates the exception
- InterruptibleChannel - interface java.nio.channels.InterruptibleChannel.
- implCloseChannel() - Method in class java.nio.channels.FileChannel
- Closes the channel.
- interestOps() - Method in class java.nio.channels.SelectionKey
- Returns the key's interest set.
- interestOps(int) - Method in class java.nio.channels.SelectionKey
- Sets this key's interest set to the given value.
- isAcceptable() - Method in class java.nio.channels.SelectionKey
- Tests if the channel attached to this key is ready to accept a new socket connection.
- isBlocking() - Method in class java.nio.channels.SelectableChannel
- Tells whether this channel is blocking or not.
- isConnectable() - Method in class java.nio.channels.SelectionKey
- Tests whether this key's channel has either finished, or failed to finish, its socket-connection operation.
- isConnected() - Method in class java.nio.channels.DatagramChannel
- Tells whether or not this channel's socket is connected.
- isConnected() - Method in class java.nio.channels.SocketChannel
- Tells whether or not the channel's socket is connected.
- isConnectionPending() - Method in class java.nio.channels.SocketChannel
- Tells whether or not a connection operation is in progress on this channel.
- isOpen() - Method in interface java.nio.channels.Channel
- Tells whether this channel is open or not
- isOpen() - Method in class java.nio.channels.Selector
- Tells whether the selector is open or not.
- isReadable() - Method in class java.nio.channels.SelectionKey
- Tests if the channel attached to the key is readable.
- isRegistered() - Method in class java.nio.channels.SelectableChannel
- Tells whether or not this channel is currently registered with any selectors.
- isShared() - Method in class java.nio.channels.FileLock
- Tells whether this lock is shared.
- isValid() - Method in class java.nio.channels.FileLock
- Tells whether or not this lock is valid.
- isValid() - Method in class java.nio.channels.SelectionKey
- Tells whether or not this key is valid.
- isWritable() - Method in class java.nio.channels.SelectionKey
- Tests if the channel attached to the key is writable.
J
- java.nio.channels - package java.nio.channels
- Abstract classes for manipulating buffers of different primitive types.
K
- keyFor(Selector) - Method in class java.nio.channels.SelectableChannel
- Retrieves the key representing the channel's registration with the given selector.
- keys() - Method in class java.nio.channels.Selector
- Returns this selector's key set.
L
- lock() - Method in class java.nio.channels.FileChannel
- Creates a file lock for the whole associated file.
- lock(long, long, boolean) - Method in class java.nio.channels.FileChannel
- Creates a file lock for a region of the associated file.
M
- m - Variable in class java.nio.channels.FileChannel.MapMode
- map(FileChannel.MapMode, long, long) - Method in class java.nio.channels.FileChannel
- Maps the file into the memory.
N
- NoConnectionPendingException - exception java.nio.channels.NoConnectionPendingException.
- NoConnectionPendingException() - Constructor for class java.nio.channels.NoConnectionPendingException
- Creates the exception
- NonReadableChannelException - exception java.nio.channels.NonReadableChannelException.
- NonReadableChannelException() - Constructor for class java.nio.channels.NonReadableChannelException
- Creates the exception
- NonWritableChannelException - exception java.nio.channels.NonWritableChannelException.
- NonWritableChannelException() - Constructor for class java.nio.channels.NonWritableChannelException
- Creates the exception
- NotYetBoundException - exception java.nio.channels.NotYetBoundException.
- NotYetBoundException() - Constructor for class java.nio.channels.NotYetBoundException
- Creates the exception
- NotYetConnectedException - exception java.nio.channels.NotYetConnectedException.
- NotYetConnectedException() - Constructor for class java.nio.channels.NotYetConnectedException
- Creates the exception
- newChannel(InputStream) - Static method in class java.nio.channels.Channels
- Constructs a channel that reads bytes from the given stream.
- newChannel(OutputStream) - Static method in class java.nio.channels.Channels
- Constructs a channel that writes bytes to the given stream.
- newInputStream(ReadableByteChannel) - Static method in class java.nio.channels.Channels
- Constructs a stream that reads bytes from the given channel.
- newInputStream(ReadableByteChannel) - Static method in class java.nio.channels.VMChannels
- Constructs a stream that reads bytes from the given channel.
- newOutputStream(WritableByteChannel) - Static method in class java.nio.channels.Channels
- Constructs a stream that writes bytes to the given channel.
- newOutputStream(WritableByteChannel) - Static method in class java.nio.channels.VMChannels
- Constructs a stream that writes bytes to the given channel.
- newReader(ReadableByteChannel, CharsetDecoder, int) - Static method in class java.nio.channels.Channels
- Constructs a reader that decodes bytes from the given channel using the given decoder.
- newReader(ReadableByteChannel, String) - Static method in class java.nio.channels.Channels
- Constructs a reader that decodes bytes from the given channel according to the named charset.
- newWriter(WritableByteChannel, CharsetEncoder, int) - Static method in class java.nio.channels.Channels
- Constructs a writer that encodes characters using the given encoder and writes the resulting bytes to the given channel.
- newWriter(WritableByteChannel, String) - Static method in class java.nio.channels.Channels
- Constructs a writer that encodes characters according to the named charset and writes the resulting bytes to the given channel.
O
- OP_ACCEPT - Static variable in class java.nio.channels.SelectionKey
- OP_CONNECT - Static variable in class java.nio.channels.SelectionKey
- OP_READ - Static variable in class java.nio.channels.SelectionKey
- OP_WRITE - Static variable in class java.nio.channels.SelectionKey
- OverlappingFileLockException - exception java.nio.channels.OverlappingFileLockException.
- OverlappingFileLockException() - Constructor for class java.nio.channels.OverlappingFileLockException
- Creates the exception
- open() - Static method in class java.nio.channels.DatagramChannel
- Opens a datagram channel.
- open() - Static method in class java.nio.channels.Pipe
- Opens a pipe.
- open() - Static method in class java.nio.channels.Selector
- Opens a selector.
- open() - Static method in class java.nio.channels.ServerSocketChannel
- Opens a server socket channel.
- open() - Static method in class java.nio.channels.SocketChannel
- Opens a socket channel.
- open(SocketAddress) - Static method in class java.nio.channels.SocketChannel
- Opens a channel and connects it to a remote address.
- overlaps(long, long) - Method in class java.nio.channels.FileLock
- Tells whether or not this lock overlaps the given lock range.
P
- PRIVATE - Static variable in class java.nio.channels.FileChannel.MapMode
- Pipe - class java.nio.channels.Pipe.
- Pipe() - Constructor for class java.nio.channels.Pipe
- Initializes the pipe.
- Pipe.SinkChannel - class java.nio.channels.Pipe.SinkChannel.
- Pipe.SinkChannel(SelectorProvider) - Constructor for class java.nio.channels.Pipe.SinkChannel
- Initializes the channel.
- Pipe.SourceChannel - class java.nio.channels.Pipe.SourceChannel.
- Pipe.SourceChannel(SelectorProvider) - Constructor for class java.nio.channels.Pipe.SourceChannel
- Initializes the channel.
- position() - Method in class java.nio.channels.FileChannel
- Returns the current position on the file.
- position(long) - Method in class java.nio.channels.FileChannel
- Sets the position of the channel on the assoziated file.
- position - Variable in class java.nio.channels.FileLock
- position() - Method in class java.nio.channels.FileLock
- Returns the position within the file of the first byte of the locked region.
- provider() - Method in class java.nio.channels.SelectableChannel
- Returns the provider that created this channel.
- provider() - Method in class java.nio.channels.Selector
- Returns the SelectorProvider that created the selector.
R
- READ_ONLY - Static variable in class java.nio.channels.FileChannel.MapMode
- READ_WRITE - Static variable in class java.nio.channels.FileChannel.MapMode
- ReadableByteChannel - interface java.nio.channels.ReadableByteChannel.
- read(ByteBuffer[]) - Method in class java.nio.channels.DatagramChannel
- Reads data from this channel.
- read(ByteBuffer) - Method in class java.nio.channels.DatagramChannel
- Reads data from this channel.
- read(ByteBuffer[], int, int) - Method in class java.nio.channels.DatagramChannel
- Reads data from this channel.
- read(ByteBuffer[], int, int) - Method in class java.nio.channels.FileChannel
- Reads data from the channel.
- read(ByteBuffer[]) - Method in class java.nio.channels.FileChannel
- Reads data from the channel.
- read(ByteBuffer) - Method in class java.nio.channels.FileChannel
- Reads data from the channel.
- read(ByteBuffer, long) - Method in class java.nio.channels.FileChannel
- Reads data from the channel.
- read(ByteBuffer) - Method in interface java.nio.channels.ReadableByteChannel
- Reads a sequence of bytes from this channel into the given buffer
- read(ByteBuffer[], int, int) - Method in interface java.nio.channels.ScatteringByteChannel
- Reads a sequence of bytes from this channel into a subsequence of the given buffers
- read(ByteBuffer[]) - Method in interface java.nio.channels.ScatteringByteChannel
- Reads a sequence of bytes from this channel into the given buffers
- read(ByteBuffer[]) - Method in class java.nio.channels.SocketChannel
- Reads data from the channel.
- read(ByteBuffer) - Method in class java.nio.channels.SocketChannel
- Reads data from the channel.
- read(ByteBuffer[], int, int) - Method in class java.nio.channels.SocketChannel
- Reads data from the channel.
- readyOps() - Method in class java.nio.channels.SelectionKey
- Retrieves this key's ready-operation set.
- receive(ByteBuffer) - Method in class java.nio.channels.DatagramChannel
- Receives a datagram via this channel.
- register(Selector, int) - Method in class java.nio.channels.SelectableChannel
- Registers this channel with the given selector, returning a selection key.
- register(Selector, int, Object) - Method in class java.nio.channels.SelectableChannel
- Registers this channel with the given selector, returning a selection key.
- release() - Method in class java.nio.channels.FileLock
- Releases this lock.
S
- ScatteringByteChannel - interface java.nio.channels.ScatteringByteChannel.
- SelectableChannel - class java.nio.channels.SelectableChannel.
- SelectableChannel() - Constructor for class java.nio.channels.SelectableChannel
- Initializes the channel.
- SelectionKey - class java.nio.channels.SelectionKey.
- SelectionKey() - Constructor for class java.nio.channels.SelectionKey
- Initializes the selection key.
- Selector - class java.nio.channels.Selector.
- Selector() - Constructor for class java.nio.channels.Selector
- Initializes the selector.
- ServerSocketChannel - class java.nio.channels.ServerSocketChannel.
- ServerSocketChannel(SelectorProvider) - Constructor for class java.nio.channels.ServerSocketChannel
- Initializes this channel.
- SocketChannel - class java.nio.channels.SocketChannel.
- SocketChannel(SelectorProvider) - Constructor for class java.nio.channels.SocketChannel
- Initializes this socket channel.
- select() - Method in class java.nio.channels.Selector
- Selects a set of keys whose corresponding channels are ready for I/O operations.
- select(long) - Method in class java.nio.channels.Selector
- Selects a set of keys whose corresponding channels are ready for I/O operations.
- selectNow() - Method in class java.nio.channels.Selector
- Selects a set of keys whose corresponding channels are ready for I/O operations.
- selectedKeys() - Method in class java.nio.channels.Selector
- Returns this selector's selected-key set.
- selector() - Method in class java.nio.channels.SelectionKey
- Returns the selector for which this key was created.
- send(ByteBuffer, SocketAddress) - Method in class java.nio.channels.DatagramChannel
- Sends a datagram via this channel.
- serialVersionUID - Static variable in class java.nio.channels.AlreadyConnectedException
- serialVersionUID - Static variable in class java.nio.channels.AsynchronousCloseException
- serialVersionUID - Static variable in class java.nio.channels.CancelledKeyException
- serialVersionUID - Static variable in class java.nio.channels.ClosedByInterruptException
- serialVersionUID - Static variable in class java.nio.channels.ClosedChannelException
- serialVersionUID - Static variable in class java.nio.channels.ClosedSelectorException
- serialVersionUID - Static variable in class java.nio.channels.ConnectionPendingException
- serialVersionUID - Static variable in class java.nio.channels.FileLockInterruptionException
- serialVersionUID - Static variable in class java.nio.channels.IllegalBlockingModeException
- serialVersionUID - Static variable in class java.nio.channels.IllegalSelectorException
- serialVersionUID - Static variable in class java.nio.channels.NoConnectionPendingException
- serialVersionUID - Static variable in class java.nio.channels.NonReadableChannelException
- serialVersionUID - Static variable in class java.nio.channels.NonWritableChannelException
- serialVersionUID - Static variable in class java.nio.channels.NotYetBoundException
- serialVersionUID - Static variable in class java.nio.channels.NotYetConnectedException
- serialVersionUID - Static variable in class java.nio.channels.OverlappingFileLockException
- serialVersionUID - Static variable in class java.nio.channels.UnresolvedAddressException
- serialVersionUID - Static variable in class java.nio.channels.UnsupportedAddressTypeException
- shared - Variable in class java.nio.channels.FileLock
- sink() - Method in class java.nio.channels.Pipe
- Returns a pipe's sink channel.
- size() - Method in class java.nio.channels.FileChannel
- Return the size of the file thus far
- size - Variable in class java.nio.channels.FileLock
- size() - Method in class java.nio.channels.FileLock
- Returns the size of the locked region in bytes.
- socket() - Method in class java.nio.channels.DatagramChannel
- Retrieves the channel's socket.
- socket() - Method in class java.nio.channels.ServerSocketChannel
- Retrieves the channels socket.
- socket() - Method in class java.nio.channels.SocketChannel
- Retrieves the channel's socket.
- source() - Method in class java.nio.channels.Pipe
- Returns a pipe's source channel
T
- toString() - Method in class java.nio.channels.FileChannel.MapMode
- Returns a string representation of the
MapModeobject. - toString() - Method in class java.nio.channels.FileLock
- Returns a string describing the range, type, and validity of this lock.
- transferFrom(ReadableByteChannel, long, long) - Method in class java.nio.channels.FileChannel
- Transfers bytes from the given readable channel into this channel.
- transferTo(long, long, WritableByteChannel) - Method in class java.nio.channels.FileChannel
- Transfers bytes from this channel's file to the given writable byte channel.
- truncate(long) - Method in class java.nio.channels.FileChannel
- Truncates the channel's file at
size. - tryLock() - Method in class java.nio.channels.FileChannel
- Tries to aqquire alock on the whole associated file.
- tryLock(long, long, boolean) - Method in class java.nio.channels.FileChannel
- Tries to aqquire a lock on a region of the associated file.
U
- UnresolvedAddressException - exception java.nio.channels.UnresolvedAddressException.
- UnresolvedAddressException() - Constructor for class java.nio.channels.UnresolvedAddressException
- Creates the exception
- UnsupportedAddressTypeException - exception java.nio.channels.UnsupportedAddressTypeException.
- UnsupportedAddressTypeException() - Constructor for class java.nio.channels.UnsupportedAddressTypeException
- Creates the exception
V
- VMChannels - class java.nio.channels.VMChannels.
- VMChannels() - Constructor for class java.nio.channels.VMChannels
- This class isn't intended to be instantiated.
- validOps() - Method in class java.nio.channels.DatagramChannel
- Retrieves the valid operations for this channel.
- validOps() - Method in class java.nio.channels.Pipe.SinkChannel
- Returns an operation set that is valid on this channel.
- validOps() - Method in class java.nio.channels.Pipe.SourceChannel
- Returns an operation set that is valid on this channel.
- validOps() - Method in class java.nio.channels.SelectableChannel
- Returns a set of valid operations on this channel.
- validOps() - Method in class java.nio.channels.ServerSocketChannel
- Retrieves the valid operations for this channel.
- validOps() - Method in class java.nio.channels.SocketChannel
- Retrieves the valid operations for this channel.
W
- WritableByteChannel - interface java.nio.channels.WritableByteChannel.
- wakeup() - Method in class java.nio.channels.Selector
- Causes the first selection operation that has not yet returned to return immediately.
- write(ByteBuffer[]) - Method in class java.nio.channels.DatagramChannel
- Writes data to this channel.
- write(ByteBuffer) - Method in class java.nio.channels.DatagramChannel
- Writes data to this channel.
- write(ByteBuffer[], int, int) - Method in class java.nio.channels.DatagramChannel
- Writes data to this channel.
- write(ByteBuffer[]) - Method in class java.nio.channels.FileChannel
- Writes data to the channel.
- write(ByteBuffer) - Method in class java.nio.channels.FileChannel
- Writes data to the channel.
- write(ByteBuffer, long) - Method in class java.nio.channels.FileChannel
- Writes data to the channel.
- write(ByteBuffer[], int, int) - Method in class java.nio.channels.FileChannel
- Writes data to the channel.
- write(ByteBuffer[], int, int) - Method in interface java.nio.channels.GatheringByteChannel
- Writes a sequence of bytes to this channel from a subsequence of the given buffers
- write(ByteBuffer[]) - Method in interface java.nio.channels.GatheringByteChannel
- Writes a sequence of bytes to this channel from the given buffers
- write(ByteBuffer[]) - Method in class java.nio.channels.SocketChannel
- Writes data to the channel.
- write(ByteBuffer) - Method in class java.nio.channels.SocketChannel
- Writes data to the channel.
- write(ByteBuffer[], int, int) - Method in class java.nio.channels.SocketChannel
- Writes data to the channel.
- write(ByteBuffer) - Method in interface java.nio.channels.WritableByteChannel
- Writes a sequence of bytes to this channel from the given buffer
A B C D F G I J K L M N O P R S T U V W
|
|||||||||
| Home >> All >> java >> nio >> [ channels overview ] | PREV NEXT | ||||||||