From e6f9e6c9738af12d4eecdd7a40bb2349b60c7596 Mon Sep 17 00:00:00 2001
From: Oliver Heger Assists with the serialization process and performs additional functionality based
+ * Assists with the serialization process and performs additional functionality based
* on serialization.
* SerializationUtils instances should NOT be constructed in standard programming.
* Instead, the class should be used as {@code SerializationUtils.clone(object)}.
@@ -49,7 +49,7 @@ import java.io.Serializable;
* @version $Id$
*/
public class SerializationUtils {
-
+
/**
*
The stream will be closed once the object is written. * This avoids the need for a finally clause, and maybe also exception * handling, in the application code.
- * + * *The stream passed in is not buffered internally within this method. * This is the responsibility of your application if desired.
* @@ -114,7 +115,7 @@ public class SerializationUtils { // stream closed in the finally out = new ObjectOutputStream(outputStream); out.writeObject(obj); - + } catch (IOException ex) { throw new SerializationException(ex); } finally { @@ -150,7 +151,7 @@ public class SerializationUtils { *The stream will be closed once the object is written. This * avoids the need for a finally clause, and maybe also exception * handling, in the application code.
- * + * *The stream passed in is not buffered internally within this method. * This is the responsibility of your application if desired.
* @@ -168,7 +169,7 @@ public class SerializationUtils { // stream closed in the finally in = new ObjectInputStream(inputStream); return in.readObject(); - + } catch (ClassNotFoundException ex) { throw new SerializationException(ex); } catch (IOException ex) { @@ -199,5 +200,5 @@ public class SerializationUtils { ByteArrayInputStream bais = new ByteArrayInputStream(objectData); return deserialize(bais); } - + }