Uses of Class
java.nio.channels.FileChannel
Packages that use FileChannel
Package
Description
The main API package for XNIO.
The core XNIO channel API.
The XNIO conduit SPI.
-
Uses of FileChannel in java.nio.channels
Methods in java.nio.channels that return FileChannelModifier and TypeMethodDescriptionstatic FileChannel
FileChannel.open
(Path path, OpenOption... options) abstract FileChannel
FileChannel.position
(long newPosition) abstract FileChannel
FileChannel.truncate
(long size) -
Uses of FileChannel in org.xnio
Methods in org.xnio that return FileChannelModifier and TypeMethodDescriptionXnio.openFile
(File file, FileAccess access) Open a file on the filesystem.Open a file on the filesystem.Xnio.openFile
(String fileName, FileAccess access) Open a file on the filesystem.Open a file on the filesystem.protected FileChannel
Xnio.unwrapFileChannel
(FileChannel src) Unwrap an XNIO-wrapped file channel.Methods in org.xnio with parameters of type FileChannelModifier and TypeMethodDescriptionstatic <T extends StreamSourceChannel>
ChannelListener<T>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>
ChannelListener<T>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. -
Uses of FileChannel in org.xnio.channels
Methods in org.xnio.channels with parameters of type FileChannelModifier and TypeMethodDescriptionstatic 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
AssembledStreamChannel.transferFrom
(FileChannel src, long position, long count) long
FixedLengthStreamSinkChannel.transferFrom
(FileChannel src, long position, long count) long
NullStreamSinkChannel.transferFrom
(FileChannel src, long position, long count) 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
AssembledStreamChannel.transferTo
(long position, long count, FileChannel target) long
EmptyStreamSourceChannel.transferTo
(long position, long count, FileChannel target) long
FixedLengthStreamSourceChannel.transferTo
(long position, long count, FileChannel target) long
PushBackStreamChannel.transferTo
(long position, long count, FileChannel target) long
SplitStreamSourceChannel.transferTo
(long position, long count, FileChannel target) long
StreamSourceChannel.transferTo
(long position, long count, FileChannel target) Transfers bytes into the given file from this channel. -
Uses of FileChannel in org.xnio.conduits
Methods in org.xnio.conduits with parameters of type FileChannelModifier and TypeMethodDescriptionlong
AbstractStreamSinkConduit.transferFrom
(FileChannel src, long position, long count) long
BlockingStreamSinkConduit.transferFrom
(FileChannel src, long position, long count) long
BufferedStreamSinkConduit.transferFrom
(FileChannel src, long position, long count) long
ConduitStreamSinkChannel.transferFrom
(FileChannel src, long position, long count) long
DeflatingStreamSinkConduit.transferFrom
(FileChannel src, long position, long count) long
FixedLengthStreamSinkConduit.transferFrom
(FileChannel src, long position, long count) long
MessageStreamSinkConduit.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
StreamSinkConduit.transferFrom
(FileChannel src, long position, long count) Transfer bytes into this conduit from the given file.long
SynchronizedStreamSinkConduit.transferFrom
(FileChannel src, long position, long count) long
AbstractStreamSourceConduit.transferTo
(long position, long count, FileChannel target) long
BlockingStreamSourceConduit.transferTo
(long position, long count, FileChannel target) long
BufferedStreamSourceConduit.transferTo
(long position, long count, FileChannel target) long
ConduitStreamSourceChannel.transferTo
(long position, long count, FileChannel target) long
EmptyStreamSourceConduit.transferTo
(long position, long count, FileChannel target) long
FixedLengthStreamSourceConduit.transferTo
(long position, long count, FileChannel target) long
InflatingStreamSourceConduit.transferTo
(long position, long count, FileChannel target) long
MessageStreamSourceConduit.transferTo
(long position, long count, FileChannel target) long
PushBackStreamSourceConduit.transferTo
(long position, long count, FileChannel target) long
StreamSourceChannelWrappingConduit.transferTo
(long position, long count, FileChannel target) long
StreamSourceConduit.transferTo
(long position, long count, FileChannel target) Transfers bytes into the given file from this channel.long
SynchronizedStreamSourceConduit.transferTo
(long position, long count, FileChannel target)