public class VanillaMappedFile extends Object implements VanillaMappedResource
| Constructor and Description |
|---|
VanillaMappedFile(File path,
VanillaMappedMode mode) |
VanillaMappedFile(File path,
VanillaMappedMode mode,
long size,
FileLifecycleListener fileLifecycleListener) |
| 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) |
static VanillaMappedBytes |
readWriteBytes(File path,
long size,
long index,
FileLifecycleListener fileLifecycleListener) |
long |
size() |
public VanillaMappedFile(File path, VanillaMappedMode mode) throws IOException
IOExceptionpublic VanillaMappedFile(File path, VanillaMappedMode mode, long size, FileLifecycleListener fileLifecycleListener) throws IOException
IOExceptionpublic 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
IOExceptionpublic static VanillaMappedBytes readWriteBytes(File path, long size, long index, FileLifecycleListener fileLifecycleListener) 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 VanillaMappedResourceIOExceptionCopyright © 2019. All rights reserved.