FileZip
The file is read from a stream. When reading from start to end, the same input stream is re-used, however when reading from end to start, a new input stream is opened for each request.
Methods
void
force
(boolean metaData)
void
force
(boolean metaData) throws IOException
void
implCloseChannel
()
void
implCloseChannel
() throws IOException
long
position
()
long
position
()
FileChannel
position
(long newPos)
FileChannel
position
(long newPos)
int
read
(ByteBuffer dst)
int
read
(ByteBuffer dst) throws IOException
long
size
()
long
size
()
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