FilePathRec

A file system that records all write operations and can re-play them.

Methods
static void register()
Register the file system.
static void register()
Register the file system.
static void setRecorder(Recorder recorder)
Set the recorder class.
static void setRecorder(Recorder recorder)
Set the recorder class.
Parameters:
recorder - the recorder
boolean createFile()
boolean createFile()
FilePath createTempFile(String suffix, boolean deleteOnExit, boolean inTempDir)
FilePath createTempFile(String suffix, boolean deleteOnExit, boolean inTempDir) throws IOException
void delete()
void delete()
String getScheme()
Get the prefix for this file system.
String getScheme()
Get the prefix for this file system.
Returns:
the prefix
boolean isTrace()
boolean isTrace()
void log(int op, String fileName)
Log the operation.
void log(int op, String fileName)
Log the operation.
Parameters:
op - the operation
fileName - the file name(s)
void log(int op, String fileName, byte[] data, long x)
Log the operation.
void log(int op, String fileName, byte[] data, long x)
Log the operation.
Parameters:
op - the operation
fileName - the file name
data - the data or null
x - the value or 0
void moveTo(FilePath newPath, boolean atomicReplace)
void moveTo(FilePath newPath, boolean atomicReplace)
OutputStream newOutputStream(boolean append)
OutputStream newOutputStream(boolean append) throws IOException
FileChannel open(String mode)
FileChannel open(String mode) throws IOException
void setTrace(boolean trace)
void setTrace(boolean trace)