public abstract class Pickle extends Object
Constructor and Description |
---|
Pickle() |
Modifier and Type | Method and Description |
---|---|
static void |
dump(Object o,
File f)
Serializes a object into a file.
|
static void |
dump(Object o,
File f,
boolean append)
Serializes a object into a file.
|
static String |
dumps(Object o)
Serializes a object on the main memory and returns a sequence of bytes as a String.
|
static Object |
load(File f)
Deserializes objects.
|
static Object |
loads(String s)
Receives a sequence of bytes and returns a object.
|
public static void dump(Object o, File f)
o
- Object to be serialized.f
- File where the serialization will occurs.public static void dump(Object o, File f, boolean append)
o
- Object to be serialized.f
- File where the serialization will occurs.append
- defines if the write will occur in append mode.public static String dumps(Object o)
o
- Object to be serialized.public static Object load(File f)
f
- File that holds the serialized objects.