Package com.intellij.util.io
Class MappedBufferWrapper
- java.lang.Object
-
- com.intellij.util.io.MappedBufferWrapper
-
- Direct Known Subclasses:
ReadOnlyMappedBufferWrapper
,ReadWriteMappedBufferWrapper
public abstract class MappedBufferWrapper extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected File
myFile
protected long
myLength
protected long
myPosition
-
Constructor Summary
Constructors Constructor Description MappedBufferWrapper(File file, long pos, long length)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ByteBuffer
buf()
static boolean
clean(ByteBuffer buffer)
void
dispose()
void
flush()
ByteBuffer
getIfCached()
boolean
isMapped()
protected abstract MappedByteBuffer
map()
static boolean
tryForce(ByteBuffer buffer)
void
unmap()
-
-
-
Field Detail
-
myFile
protected final File myFile
-
myPosition
protected final long myPosition
-
myLength
protected final long myLength
-
-
Constructor Detail
-
MappedBufferWrapper
public MappedBufferWrapper(File file, long pos, long length)
-
-
Method Detail
-
map
protected abstract MappedByteBuffer map()
-
unmap
public final void unmap()
-
getIfCached
public ByteBuffer getIfCached()
-
buf
public ByteBuffer buf()
-
clean
public static boolean clean(ByteBuffer buffer)
-
tryForce
public static boolean tryForce(ByteBuffer buffer)
-
isMapped
public boolean isMapped()
-
flush
public void flush()
-
dispose
public void dispose()
-
-