public class ShrinkWrapFileChannel extends FileChannel
FileChannel implementation.
Implements only operations defined by SeekableByteChannel interface.
Other operations throw UnsupportedOperationException.FileChannel.MapMode| Constructor and Description |
|---|
ShrinkWrapFileChannel(SeekableByteChannel delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
force(boolean metaData) |
protected void |
implCloseChannel() |
FileLock |
lock(long position,
long size,
boolean shared) |
MappedByteBuffer |
map(FileChannel.MapMode mode,
long position,
long size) |
long |
position() |
FileChannel |
position(long newPosition) |
int |
read(ByteBuffer dst) |
long |
read(ByteBuffer[] dsts,
int offset,
int length) |
int |
read(ByteBuffer dst,
long position) |
long |
size() |
long |
transferFrom(ReadableByteChannel src,
long position,
long count) |
long |
transferTo(long position,
long count,
WritableByteChannel target) |
FileChannel |
truncate(long size) |
FileLock |
tryLock(long position,
long size,
boolean shared) |
int |
write(ByteBuffer src) |
long |
write(ByteBuffer[] srcs,
int offset,
int length) |
int |
write(ByteBuffer src,
long position) |
begin, close, end, isOpenpublic ShrinkWrapFileChannel(SeekableByteChannel delegate)
public int read(ByteBuffer dst) throws IOException
read in interface ReadableByteChannelread in interface SeekableByteChannelread in class FileChannelIOExceptionpublic long read(ByteBuffer[] dsts, int offset, int length)
read in interface ScatteringByteChannelread in class FileChannelpublic int write(ByteBuffer src) throws IOException
write in interface SeekableByteChannelwrite in interface WritableByteChannelwrite in class FileChannelIOExceptionpublic long write(ByteBuffer[] srcs, int offset, int length)
write in interface GatheringByteChannelwrite in class FileChannelpublic long position()
throws IOException
position in interface SeekableByteChannelposition in class FileChannelIOExceptionpublic FileChannel position(long newPosition) throws IOException
position in interface SeekableByteChannelposition in class FileChannelIOExceptionpublic long size()
throws IOException
size in interface SeekableByteChannelsize in class FileChannelIOExceptionpublic FileChannel truncate(long size) throws IOException
truncate in interface SeekableByteChanneltruncate in class FileChannelIOExceptionpublic void force(boolean metaData)
force in class FileChannelpublic long transferTo(long position,
long count,
WritableByteChannel target)
transferTo in class FileChannelpublic long transferFrom(ReadableByteChannel src, long position, long count)
transferFrom in class FileChannelpublic int read(ByteBuffer dst, long position)
read in class FileChannelpublic int write(ByteBuffer src, long position)
write in class FileChannelpublic MappedByteBuffer map(FileChannel.MapMode mode, long position, long size)
map in class FileChannelpublic FileLock lock(long position, long size, boolean shared)
lock in class FileChannelpublic FileLock tryLock(long position, long size, boolean shared)
tryLock in class FileChannelprotected void implCloseChannel()
throws IOException
implCloseChannel in class AbstractInterruptibleChannelIOExceptionCopyright © 2024 JBoss by Red Hat. All rights reserved.