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 voidforce(boolean var1)FileLocklock(long var1, long var3, boolean var5)MappedByteBuffermap(FileChannel.MapMode var1, long var2, long var4)abstract longposition()abstract FileChannelposition(long var1)abstract intread(ByteBuffer var1)longread(ByteBuffer[] var1, int var2, int var3)intread(ByteBuffer var1, long var2)abstract longsize()longtransferFrom(ReadableByteChannel var1, long var2, long var4)longtransferTo(long var1, long var3, WritableByteChannel var5)abstract FileChanneltruncate(long var1)FileLocktryLock(long var1, long var3, boolean var5)abstract intwrite(ByteBuffer var1)longwrite(ByteBuffer[] var1, int var2, int var3)intwrite(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:
sizein interfaceSeekableByteChannel- Specified by:
sizein classFileChannel- Throws:
IOException
-
position
public abstract long position() throws IOException- Specified by:
positionin interfaceSeekableByteChannel- Specified by:
positionin classFileChannel- Throws:
IOException
-
position
public abstract FileChannel position(long var1) throws IOException
- Specified by:
positionin interfaceSeekableByteChannel- Specified by:
positionin classFileChannel- Throws:
IOException
-
read
public abstract int read(ByteBuffer var1) throws IOException
- Specified by:
readin interfaceReadableByteChannel- Specified by:
readin interfaceSeekableByteChannel- Specified by:
readin classFileChannel- Throws:
IOException
-
write
public abstract int write(ByteBuffer var1) throws IOException
- Specified by:
writein interfaceSeekableByteChannel- Specified by:
writein interfaceWritableByteChannel- Specified by:
writein classFileChannel- Throws:
IOException
-
read
public int read(ByteBuffer var1, long var2) throws IOException
- Specified by:
readin classFileChannel- Throws:
IOException
-
write
public int write(ByteBuffer var1, long var2) throws IOException
- Specified by:
writein classFileChannel- Throws:
IOException
-
truncate
public abstract FileChannel truncate(long var1) throws IOException
- Specified by:
truncatein interfaceSeekableByteChannel- Specified by:
truncatein classFileChannel- Throws:
IOException
-
force
public void force(boolean var1) throws IOException- Specified by:
forcein classFileChannel- Throws:
IOException
-
lock
public FileLock lock(long var1, long var3, boolean var5) throws IOException
- Specified by:
lockin classFileChannel- Throws:
IOException
-
map
public MappedByteBuffer map(FileChannel.MapMode var1, long var2, long var4) throws IOException
- Specified by:
mapin classFileChannel- Throws:
IOException
-
read
public long read(ByteBuffer[] var1, int var2, int var3) throws IOException
- Specified by:
readin interfaceScatteringByteChannel- Specified by:
readin classFileChannel- Throws:
IOException
-
transferFrom
public long transferFrom(ReadableByteChannel var1, long var2, long var4) throws IOException
- Specified by:
transferFromin classFileChannel- Throws:
IOException
-
transferTo
public long transferTo(long var1, long var3, WritableByteChannel var5) throws IOException- Specified by:
transferToin classFileChannel- Throws:
IOException
-
tryLock
public FileLock tryLock(long var1, long var3, boolean var5) throws IOException
- Specified by:
tryLockin classFileChannel- Throws:
IOException
-
write
public long write(ByteBuffer[] var1, int var2, int var3) throws IOException
- Specified by:
writein interfaceGatheringByteChannel- Specified by:
writein classFileChannel- Throws:
IOException
-
-