public abstract class FileBase
extends java.nio.channels.FileChannel
| Constructor and Description |
|---|
FileBase() |
| 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 |
read(java.nio.ByteBuffer[] dsts,
int offset,
int length) |
int |
read(java.nio.ByteBuffer dst,
long position) |
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.FileLock |
tryLock(long position,
long size,
boolean shared) |
long |
write(java.nio.ByteBuffer[] srcs,
int offset,
int length) |
int |
write(java.nio.ByteBuffer src,
long position) |
lock, open, open, position, position, read, read, size, truncate, tryLock, write, writebegin, close, end, isOpenpublic 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 void force(boolean metaData)
throws java.io.IOException
force in class java.nio.channels.FileChanneljava.io.IOExceptionprotected void implCloseChannel()
throws java.io.IOException
implCloseChannel in class java.nio.channels.spi.AbstractInterruptibleChanneljava.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.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 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 long transferFrom(java.nio.channels.ReadableByteChannel src,
long position,
long count)
throws java.io.IOException
transferFrom 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 java.nio.channels.FileLock tryLock(long position,
long size,
boolean shared)
throws java.io.IOException
tryLock 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.IOException