Package org.h2.store.fs
Class FileBase
java.lang.Object
java.nio.channels.spi.AbstractInterruptibleChannel
java.nio.channels.FileChannel
org.h2.store.fs.FileBase
- All Implemented Interfaces:
Closeable
,AutoCloseable
,ByteChannel
,Channel
,GatheringByteChannel
,InterruptibleChannel
,ReadableByteChannel
,ScatteringByteChannel
,SeekableByteChannel
,WritableByteChannel
- Direct Known Subclasses:
FileBaseDefault
,FilePathCache.FileCache
,FileRec
,FileRetryOnInterrupt
,FileZip
The base class for file implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.nio.channels.FileChannel
FileChannel.MapMode
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
force
(boolean metaData) protected void
lock
(long position, long size, boolean shared) map
(FileChannel.MapMode mode, long position, long size) long
read
(ByteBuffer[] dsts, int offset, int length) int
read
(ByteBuffer dst, long position) long
transferFrom
(ReadableByteChannel src, long position, long count) long
transferTo
(long position, long count, WritableByteChannel target) tryLock
(long position, long size, boolean shared) long
write
(ByteBuffer[] srcs, int offset, int length) int
write
(ByteBuffer src, long position) Methods inherited from class java.nio.channels.FileChannel
lock, map, open, open, position, position, read, read, size, truncate, tryLock, write, write
Methods inherited from class java.nio.channels.spi.AbstractInterruptibleChannel
begin, close, end, isOpen
-
Constructor Details
-
FileBase
public FileBase()
-
-
Method Details
-
read
- Specified by:
read
in classFileChannel
- Throws:
IOException
-
write
- Specified by:
write
in classFileChannel
- Throws:
IOException
-
force
- Specified by:
force
in classFileChannel
- Throws:
IOException
-
implCloseChannel
- Specified by:
implCloseChannel
in classAbstractInterruptibleChannel
- Throws:
IOException
-
lock
- Specified by:
lock
in classFileChannel
- Throws:
IOException
-
map
- Specified by:
map
in classFileChannel
- Throws:
IOException
-
read
- Specified by:
read
in interfaceScatteringByteChannel
- Specified by:
read
in classFileChannel
- Throws:
IOException
-
transferFrom
- Specified by:
transferFrom
in classFileChannel
- Throws:
IOException
-
transferTo
- Specified by:
transferTo
in classFileChannel
- Throws:
IOException
-
tryLock
- Specified by:
tryLock
in classFileChannel
- Throws:
IOException
-
write
- Specified by:
write
in interfaceGatheringByteChannel
- Specified by:
write
in classFileChannel
- Throws:
IOException
-