public class VanillaMappedFile extends Object implements VanillaMappedResource
| Constructor and Description |
|---|
VanillaMappedFile(File path,
VanillaMappedMode mode) |
VanillaMappedFile(File path,
VanillaMappedMode mode,
long size) |
| Modifier and Type | Method and Description |
|---|---|
VanillaMappedBytes |
bytes(long address,
long size) |
VanillaMappedBytes |
bytes(long address,
long size,
long index) |
void |
close() |
String |
path() |
static VanillaMappedFile |
readOnly(File path) |
static VanillaMappedFile |
readOnly(File path,
long size) |
static VanillaMappedFile |
readWrite(File path) |
static VanillaMappedFile |
readWrite(File path,
long size) |
static VanillaMappedBytes |
readWriteBytes(File path,
long size) |
static VanillaMappedBytes |
readWriteBytes(File path,
long size,
long index) |
long |
size() |
public VanillaMappedFile(File path, VanillaMappedMode mode) throws IOException
IOExceptionpublic VanillaMappedFile(File path, VanillaMappedMode mode, long size) throws IOException
IOExceptionpublic VanillaMappedBytes bytes(long address, long size) throws IOException
IOExceptionpublic VanillaMappedBytes bytes(long address, long size, long index) throws IOException
IOExceptionpublic String path()
path in interface VanillaMappedResourcepublic long size()
size in interface VanillaMappedResourcepublic void close()
throws IOException
close in interface VanillaMappedResourceIOExceptionpublic static VanillaMappedFile readWrite(File path) throws IOException
IOExceptionpublic static VanillaMappedFile readWrite(File path, long size) throws IOException
IOExceptionpublic static VanillaMappedFile readOnly(File path) throws IOException
IOExceptionpublic static VanillaMappedFile readOnly(File path, long size) throws IOException
IOExceptionpublic static VanillaMappedBytes readWriteBytes(File path, long size) throws IOException
IOExceptionpublic static VanillaMappedBytes readWriteBytes(File path, long size, long index) throws IOException
IOExceptionCopyright © 2015. All rights reserved.