spis.Util.io
Class Serialisation
java.lang.Object
spis.Util.io.Serialisation
- public class Serialisation
- extends java.lang.Object
Class Name : StandardInputReader
Project ref : SPIS project
File name : StandardInputReader.java
File type : class
Copyright : ONERA, 2 Av. E. Belin, 31055 Toulouse cedex, France
http://www.onecert.fr
Status : under development
Creation : Feb 25, 2004
Modification :
Description :
Versions and anomalies correction :
Version number | Author (name, e-mail) | Corrections/Modifications |
0.1 | JF Roussel, roussel@onecert.fr | Creation |
- Version:
- 0.1
- Author:
- JF Roussel
Method Summary |
static java.lang.Object |
readObject(java.lang.String fileName)
Reads an object to a file following Java serialization |
static java.lang.Object |
readObjectThrowingException(java.lang.String fileName)
Reads an object to a file following Java serialization, not catching exceptions (thus throwing them) |
static void |
writeObject(java.lang.Object obj,
java.lang.String fileName)
Writes an object to a file following Java serialization (sub-ojects are written too) |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Serialisation
public Serialisation()
writeObject
public static void writeObject(java.lang.Object obj,
java.lang.String fileName)
- Writes an object to a file following Java serialization (sub-ojects are written too)
- Parameters:
obj
- fileName
-
readObject
public static java.lang.Object readObject(java.lang.String fileName)
- Reads an object to a file following Java serialization
- Parameters:
fileName
-
readObjectThrowingException
public static java.lang.Object readObjectThrowingException(java.lang.String fileName)
throws java.lang.Exception
- Reads an object to a file following Java serialization, not catching exceptions (thus throwing them)
- Parameters:
fileName
-
- Throws:
java.lang.Exception