Class FileBase
- java.lang.Object
-
- java.nio.channels.spi.AbstractInterruptibleChannel
-
- java.nio.channels.FileChannel
-
- org.dizitart.no2.mvstore.compat.v1.mvstore.fs.FileBase
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,ByteChannel
,Channel
,GatheringByteChannel
,InterruptibleChannel
,ReadableByteChannel
,ScatteringByteChannel
,SeekableByteChannel
,WritableByteChannel
- Direct Known Subclasses:
FilePathCache.FileCache
,FilePathEncrypt.FileEncrypt
public abstract class FileBase extends FileChannel
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.nio.channels.FileChannel
FileChannel.MapMode
-
-
Constructor Summary
Constructors Constructor Description FileBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
force(boolean var1)
FileLock
lock(long var1, long var3, boolean var5)
MappedByteBuffer
map(FileChannel.MapMode var1, long var2, long var4)
abstract long
position()
abstract FileChannel
position(long var1)
abstract int
read(ByteBuffer var1)
long
read(ByteBuffer[] var1, int var2, int var3)
int
read(ByteBuffer var1, long var2)
abstract long
size()
long
transferFrom(ReadableByteChannel var1, long var2, long var4)
long
transferTo(long var1, long var3, WritableByteChannel var5)
abstract FileChannel
truncate(long var1)
FileLock
tryLock(long var1, long var3, boolean var5)
abstract int
write(ByteBuffer var1)
long
write(ByteBuffer[] var1, int var2, int var3)
int
write(ByteBuffer var1, long var2)
-
Methods inherited from class java.nio.channels.spi.AbstractInterruptibleChannel
close, isOpen
-
-
-
-
Method Detail
-
size
public abstract long size() throws IOException
- Specified by:
size
in interfaceSeekableByteChannel
- Specified by:
size
in classFileChannel
- Throws:
IOException
-
position
public abstract long position() throws IOException
- Specified by:
position
in interfaceSeekableByteChannel
- Specified by:
position
in classFileChannel
- Throws:
IOException
-
position
public abstract FileChannel position(long var1) throws IOException
- Specified by:
position
in interfaceSeekableByteChannel
- Specified by:
position
in classFileChannel
- Throws:
IOException
-
read
public abstract int read(ByteBuffer var1) throws IOException
- Specified by:
read
in interfaceReadableByteChannel
- Specified by:
read
in interfaceSeekableByteChannel
- Specified by:
read
in classFileChannel
- Throws:
IOException
-
write
public abstract int write(ByteBuffer var1) throws IOException
- Specified by:
write
in interfaceSeekableByteChannel
- Specified by:
write
in interfaceWritableByteChannel
- Specified by:
write
in classFileChannel
- Throws:
IOException
-
read
public int read(ByteBuffer var1, long var2) throws IOException
- Specified by:
read
in classFileChannel
- Throws:
IOException
-
write
public int write(ByteBuffer var1, long var2) throws IOException
- Specified by:
write
in classFileChannel
- Throws:
IOException
-
truncate
public abstract FileChannel truncate(long var1) throws IOException
- Specified by:
truncate
in interfaceSeekableByteChannel
- Specified by:
truncate
in classFileChannel
- Throws:
IOException
-
force
public void force(boolean var1) throws IOException
- Specified by:
force
in classFileChannel
- Throws:
IOException
-
lock
public FileLock lock(long var1, long var3, boolean var5) throws IOException
- Specified by:
lock
in classFileChannel
- Throws:
IOException
-
map
public MappedByteBuffer map(FileChannel.MapMode var1, long var2, long var4) throws IOException
- Specified by:
map
in classFileChannel
- Throws:
IOException
-
read
public long read(ByteBuffer[] var1, int var2, int var3) throws IOException
- Specified by:
read
in interfaceScatteringByteChannel
- Specified by:
read
in classFileChannel
- Throws:
IOException
-
transferFrom
public long transferFrom(ReadableByteChannel var1, long var2, long var4) throws IOException
- Specified by:
transferFrom
in classFileChannel
- Throws:
IOException
-
transferTo
public long transferTo(long var1, long var3, WritableByteChannel var5) throws IOException
- Specified by:
transferTo
in classFileChannel
- Throws:
IOException
-
tryLock
public FileLock tryLock(long var1, long var3, boolean var5) throws IOException
- Specified by:
tryLock
in classFileChannel
- Throws:
IOException
-
write
public long write(ByteBuffer[] var1, int var2, int var3) throws IOException
- Specified by:
write
in interfaceGatheringByteChannel
- Specified by:
write
in classFileChannel
- Throws:
IOException
-
-