Package | Description |
---|---|
java.nio.channels | |
org.xnio |
The main API package for XNIO.
|
org.xnio.channels |
The core XNIO channel API.
|
org.xnio.conduits |
The XNIO conduit SPI.
|
Modifier and Type | Method and Description |
---|---|
static FileChannel |
FileChannel.open(Path path,
OpenOption... options) |
abstract FileChannel |
FileChannel.position(long newPosition) |
abstract FileChannel |
FileChannel.truncate(long size) |
Modifier and Type | Method and Description |
---|---|
FileChannel |
Xnio.openFile(File file,
FileAccess access)
Open a file on the filesystem.
|
FileChannel |
Xnio.openFile(File file,
OptionMap options)
Open a file on the filesystem.
|
FileChannel |
Xnio.openFile(String fileName,
FileAccess access)
Open a file on the filesystem.
|
FileChannel |
Xnio.openFile(String fileName,
OptionMap options)
Open a file on the filesystem.
|
protected FileChannel |
Xnio.unwrapFileChannel(FileChannel src)
Unwrap an XNIO-wrapped file channel.
|
Modifier and Type | Method and Description |
---|---|
static <T extends StreamSourceChannel> |
ChannelListeners.fileReceivingChannelListener(FileChannel target,
long position,
long count,
ChannelListener<? super T> delegate,
ChannelExceptionHandler<? super T> exceptionHandler)
A file-receiving channel listener.
|
static <T extends StreamSinkChannel> |
ChannelListeners.fileSendingChannelListener(FileChannel source,
long position,
long count,
ChannelListener<? super T> delegate,
ChannelExceptionHandler<? super T> exceptionHandler)
A file-sending channel listener.
|
protected FileChannel |
Xnio.unwrapFileChannel(FileChannel src)
Unwrap an XNIO-wrapped file channel.
|
Modifier and Type | Method and Description |
---|---|
static long |
Channels.drain(FileChannel channel,
long position,
long count)
Attempt to drain the given number of bytes from the file channel.
|
static void |
Channels.transferBlocking(FileChannel destination,
StreamSourceChannel source,
long startPosition,
long count)
Transfer bytes between two channels efficiently, blocking if necessary.
|
static void |
Channels.transferBlocking(StreamSinkChannel destination,
FileChannel source,
long startPosition,
long count)
Transfer bytes between two channels efficiently, blocking if necessary.
|
long |
SplitStreamSinkChannel.transferFrom(FileChannel src,
long position,
long count) |
long |
StreamSinkChannel.transferFrom(FileChannel src,
long position,
long count)
Transfer bytes into this channel from the given file.
|
long |
NullStreamSinkChannel.transferFrom(FileChannel src,
long position,
long count) |
long |
FixedLengthStreamSinkChannel.transferFrom(FileChannel src,
long position,
long count) |
long |
AssembledStreamChannel.transferFrom(FileChannel src,
long position,
long count) |
long |
StreamSourceChannel.transferTo(long position,
long count,
FileChannel target)
Transfers bytes into the given file from this channel.
|
long |
FixedLengthStreamSourceChannel.transferTo(long position,
long count,
FileChannel target) |
long |
PushBackStreamChannel.transferTo(long position,
long count,
FileChannel target) |
long |
EmptyStreamSourceChannel.transferTo(long position,
long count,
FileChannel target) |
long |
SplitStreamSourceChannel.transferTo(long position,
long count,
FileChannel target) |
long |
AssembledStreamChannel.transferTo(long position,
long count,
FileChannel target) |
Modifier and Type | Method and Description |
---|---|
long |
BufferedStreamSinkConduit.transferFrom(FileChannel src,
long position,
long count) |
long |
DeflatingStreamSinkConduit.transferFrom(FileChannel src,
long position,
long count) |
long |
BlockingStreamSinkConduit.transferFrom(FileChannel src,
long position,
long count) |
long |
NullStreamSinkConduit.transferFrom(FileChannel src,
long position,
long count) |
long |
StreamSinkChannelWrappingConduit.transferFrom(FileChannel src,
long position,
long count) |
long |
SynchronizedStreamSinkConduit.transferFrom(FileChannel src,
long position,
long count) |
long |
ConduitStreamSinkChannel.transferFrom(FileChannel src,
long position,
long count) |
long |
AbstractStreamSinkConduit.transferFrom(FileChannel src,
long position,
long count) |
long |
FixedLengthStreamSinkConduit.transferFrom(FileChannel src,
long position,
long count) |
long |
StreamSinkConduit.transferFrom(FileChannel src,
long position,
long count)
Transfer bytes into this conduit from the given file.
|
long |
MessageStreamSinkConduit.transferFrom(FileChannel src,
long position,
long count) |
long |
StreamSourceConduit.transferTo(long position,
long count,
FileChannel target)
Transfers bytes into the given file from this channel.
|
long |
BufferedStreamSourceConduit.transferTo(long position,
long count,
FileChannel target) |
long |
BlockingStreamSourceConduit.transferTo(long position,
long count,
FileChannel target) |
long |
FixedLengthStreamSourceConduit.transferTo(long position,
long count,
FileChannel target) |
long |
AbstractStreamSourceConduit.transferTo(long position,
long count,
FileChannel target) |
long |
StreamSourceChannelWrappingConduit.transferTo(long position,
long count,
FileChannel target) |
long |
PushBackStreamSourceConduit.transferTo(long position,
long count,
FileChannel target) |
long |
ConduitStreamSourceChannel.transferTo(long position,
long count,
FileChannel target) |
long |
SynchronizedStreamSourceConduit.transferTo(long position,
long count,
FileChannel target) |
long |
MessageStreamSourceConduit.transferTo(long position,
long count,
FileChannel target) |
long |
InflatingStreamSourceConduit.transferTo(long position,
long count,
FileChannel target) |
long |
EmptyStreamSourceConduit.transferTo(long position,
long count,
FileChannel target) |
Copyright © 2015. All rights reserved.