public class AppendModeChannel
extends java.nio.channels.FileChannel
| Constructor and Description |
|---|
AppendModeChannel(java.nio.channels.FileChannel delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
force(boolean metaData) |
protected void |
implCloseChannel() |
java.nio.channels.FileLock |
lock(long position,
long size,
boolean shared) |
java.nio.MappedByteBuffer |
map(java.nio.channels.FileChannel.MapMode mode,
long position,
long size) |
long |
position() |
java.nio.channels.FileChannel |
position(long newPosition) |
int |
read(java.nio.ByteBuffer dst) |
long |
read(java.nio.ByteBuffer[] dsts,
int offset,
int length) |
int |
read(java.nio.ByteBuffer dst,
long position) |
long |
size() |
long |
transferFrom(java.nio.channels.ReadableByteChannel src,
long position,
long count) |
long |
transferTo(long position,
long count,
java.nio.channels.WritableByteChannel target) |
java.nio.channels.FileChannel |
truncate(long size) |
java.nio.channels.FileLock |
tryLock(long position,
long size,
boolean shared) |
int |
write(java.nio.ByteBuffer src) |
long |
write(java.nio.ByteBuffer[] srcs,
int offset,
int length) |
int |
write(java.nio.ByteBuffer src,
long position) |
begin, close, end, isOpenpublic AppendModeChannel(java.nio.channels.FileChannel delegate)
public int read(java.nio.ByteBuffer dst)
throws java.io.IOException
read in interface java.nio.channels.ReadableByteChannelread in interface java.nio.channels.SeekableByteChannelread in class java.nio.channels.FileChanneljava.io.IOExceptionpublic long read(java.nio.ByteBuffer[] dsts,
int offset,
int length)
throws java.io.IOException
read in interface java.nio.channels.ScatteringByteChannelread in class java.nio.channels.FileChanneljava.io.IOExceptionpublic int write(java.nio.ByteBuffer src)
throws java.io.IOException
write in interface java.nio.channels.SeekableByteChannelwrite in interface java.nio.channels.WritableByteChannelwrite in class java.nio.channels.FileChanneljava.io.IOExceptionpublic long write(java.nio.ByteBuffer[] srcs,
int offset,
int length)
throws java.io.IOException
write in interface java.nio.channels.GatheringByteChannelwrite in class java.nio.channels.FileChanneljava.io.IOExceptionpublic long position()
throws java.io.IOException
position in interface java.nio.channels.SeekableByteChannelposition in class java.nio.channels.FileChanneljava.io.IOExceptionpublic java.nio.channels.FileChannel position(long newPosition)
throws java.io.IOException
position in interface java.nio.channels.SeekableByteChannelposition in class java.nio.channels.FileChanneljava.io.IOExceptionpublic long size()
throws java.io.IOException
size in interface java.nio.channels.SeekableByteChannelsize in class java.nio.channels.FileChanneljava.io.IOExceptionpublic java.nio.channels.FileChannel truncate(long size)
throws java.io.IOException
truncate in interface java.nio.channels.SeekableByteChanneltruncate in class java.nio.channels.FileChanneljava.io.IOExceptionpublic void force(boolean metaData)
throws java.io.IOException
force in class java.nio.channels.FileChanneljava.io.IOExceptionpublic long transferTo(long position,
long count,
java.nio.channels.WritableByteChannel target)
throws java.io.IOException
transferTo in class java.nio.channels.FileChanneljava.io.IOExceptionpublic long transferFrom(java.nio.channels.ReadableByteChannel src,
long position,
long count)
throws java.io.IOException
transferFrom in class java.nio.channels.FileChanneljava.io.IOExceptionpublic int read(java.nio.ByteBuffer dst,
long position)
throws java.io.IOException
read in class java.nio.channels.FileChanneljava.io.IOExceptionpublic int write(java.nio.ByteBuffer src,
long position)
throws java.io.IOException
write in class java.nio.channels.FileChanneljava.io.IOExceptionpublic java.nio.MappedByteBuffer map(java.nio.channels.FileChannel.MapMode mode,
long position,
long size)
throws java.io.IOException
map in class java.nio.channels.FileChanneljava.io.IOExceptionpublic java.nio.channels.FileLock lock(long position,
long size,
boolean shared)
throws java.io.IOException
lock in class java.nio.channels.FileChanneljava.io.IOExceptionpublic java.nio.channels.FileLock tryLock(long position,
long size,
boolean shared)
throws java.io.IOException
tryLock in class java.nio.channels.FileChanneljava.io.IOExceptionprotected void implCloseChannel()
throws java.io.IOException
implCloseChannel in class java.nio.channels.spi.AbstractInterruptibleChanneljava.io.IOExceptionCopyright © 2001-2018 JRuby. All Rights Reserved.