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
IOException
public VanillaMappedFile(File path, VanillaMappedMode mode, long size, FileLifecycleListener fileLifecycleListener) throws IOException
IOException
public static VanillaMappedFile readWrite(File path) throws IOException
IOException
public static VanillaMappedFile readWrite(File path, long size) throws IOException
IOException
public static VanillaMappedFile readOnly(File path) throws IOException
IOException
public static VanillaMappedFile readOnly(File path, long size) throws IOException
IOException
public static VanillaMappedBytes readWriteBytes(File path, long size) throws IOException
IOException
public static VanillaMappedBytes readWriteBytes(File path, long size, long index) throws IOException
IOException
public static VanillaMappedBytes readWriteBytes(File path, long size, long index, FileLifecycleListener fileLifecycleListener) throws IOException
IOException
public VanillaMappedBytes bytes(long address, long size) throws IOException
IOException
public VanillaMappedBytes bytes(long address, long size, long index) throws IOException
IOException
public String path()
path
in interface VanillaMappedResource
public long size()
size
in interface VanillaMappedResource
public void close() throws IOException
close
in interface VanillaMappedResource
IOException
Copyright © 2019. All rights reserved.