public class IO extends Object
Constructor and Description |
---|
IO() |
Modifier and Type | Method and Description |
---|---|
void |
doc()
Show online documentation.
|
static Object |
fromXML(String xml)
Get object to XML using XSream package
|
static Object |
read(File file,
boolean compressed)
Read an object from a serialized file
|
static Object |
read(String name)
Read an object from a serialized file.
|
static Object |
read(URL url,
boolean compressed)
Read an object from an URL
|
static Object |
readXML(String name)
Read an object from a serialized XML file (should be written using
writeXML() method).
|
static String |
toXML(Object ob)
Convert object to XML using XSream package
|
static int |
write(Object o,
String name)
Write an object to a serialized file.
|
static int |
write(Object o,
String name,
boolean compressed)
Write an object to a serialized file.
|
static int |
writeXML(Object o,
String name)
Write an object to a serialized XML file.
|
public static int write(Object o, String name, boolean compressed)
o
- object to serialize into a filename
- serialized file name for output.compression
- set true if file should be compressed.public static int write(Object o, String name)
o
- object to serialize into a filename
- serialized file name for output.public static int writeXML(Object o, String name)
o
- object to serialize into a filename
- serialized file name for the output.public static Object read(File file, boolean compressed)
file
- serialized file for input.compressed
- set true if file is compressed.public static Object read(URL url, boolean compressed)
name
- serialized file name for input from URLcompressed
- set true if file is compressed.public static Object read(String name)
name
- serialized file name for input.public static Object readXML(String name)
name
- serialized XML file name for the input.public static String toXML(Object ob)
ob
- public static Object fromXML(String xml)
xml
- XML stringpublic void doc()
Jas4pp 1.5 © Java Analysis Studio for Particle Physics