FileNioMapped
Uses memory mapped files. The file size is limited to 2 GB.
Methods
void
force
(boolean metaData)
void
force
(boolean metaData) throws IOException
void
implCloseChannel
()
void
implCloseChannel
() throws IOException
long
position
()
long
position
()
FileChannel
position
(long pos)
FileChannel
position
(long pos) throws IOException
int
read
(ByteBuffer dst)
int
read
(ByteBuffer dst) throws IOException
void
setFileLength
(long newLength)
void
setFileLength
(long newLength) throws IOException
long
size
()
long
size
() throws IOException
String
toString
()
String
toString
()
FileChannel
truncate
(long newLength)
FileChannel
truncate
(long newLength) throws IOException
FileLock
tryLock
(long position, long size, boolean shared)
FileLock
tryLock
(long position, long size, boolean shared) throws IOException
int
write
(ByteBuffer src)
int
write
(ByteBuffer src) throws IOException