public abstract class Mapped extends Object implements Closeable
| Modifier and Type | Field and Description |
|---|---|
protected static Consumer<MappedByteBuffer> |
buffCleaner |
protected MappedByteBuffer |
buffer |
protected FileChannel |
channel |
protected static int |
DATA_FILENAME_MAX_LENGTH |
protected boolean |
newed |
| Modifier | Constructor and Description |
|---|---|
protected |
Mapped(Path path,
long pos,
long size) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
force() |
static Path |
pathname(Path path,
long name,
String extension) |
protected static final int DATA_FILENAME_MAX_LENGTH
protected static Consumer<MappedByteBuffer> buffCleaner
protected boolean newed
protected FileChannel channel
protected MappedByteBuffer buffer
protected Mapped(Path path, long pos, long size) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void force()
throws IOException
IOExceptionCopyright © 2025. All rights reserved.