| Modifier and Type | Method and Description |
|---|---|
static java.lang.Object |
cloneUsingTof(java.lang.Object original)
This is a slow-but-very-sure cloning method based on writing the object out as a TOF and reading it back in
again.
|
static java.lang.Object |
readMetaObjectFrom(VfsFile file)
Reads the TOF file and converts the result to an MetaTOF object.
|
static java.lang.Object |
readObjectFrom(VfsFile file)
Reads the TOF file and converts the result to an appropriate object.
|
static boolean |
validate(VfsFile file)
Parses and validates the syntax for the given TOF file.
|
static void |
writeMetaObjectTo(java.lang.Object object,
VfsFile file)
Writes the given object in TOF format to the given file.
|
static void |
writeObjectTo(java.lang.Object object,
VfsFile file)
Writes the given object in TOF format to the given file.
|
static void |
writeObjectWithoutPointersTo(java.lang.Object victim,
VfsFile tofFile)
Writes an object to in TOF format to the given file.
|
public static java.lang.Object readObjectFrom(VfsFile file) throws java.io.IOException
java.io.IOExceptionpublic static void writeObjectTo(java.lang.Object object,
VfsFile file)
throws java.io.IOException
java.io.IOExceptionpublic static void writeObjectWithoutPointersTo(java.lang.Object victim,
VfsFile tofFile)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.Object readMetaObjectFrom(VfsFile file) throws java.io.IOException
java.io.IOExceptionpublic static void writeMetaObjectTo(java.lang.Object object,
VfsFile file)
throws java.io.IOException
java.io.IOExceptionpublic static boolean validate(VfsFile file) throws java.io.IOException
file - java.io.IOExceptionpublic static java.lang.Object cloneUsingTof(java.lang.Object original)
throws java.io.IOException
java.io.IOException