From fddab7dc9b09a03abf7e066fdf88fbf00b2bab89 Mon Sep 17 00:00:00 2001 From: Michael Koch Date: Tue, 18 Mar 2003 07:50:19 +0000 Subject: BufferedOutputStream.java, [...]: More merges from classpath. 2003-03-18 Michael Koch * java/io/BufferedOutputStream.java, java/io/DataInput.java, java/io/DataInputStream.java, java/io/DataOutput.java, java/io/Externalizable.java: More merges from classpath. From-SVN: r64528 --- libjava/java/io/Externalizable.java | 85 +++++++++++++++++++------------------ 1 file changed, 44 insertions(+), 41 deletions(-) (limited to 'libjava/java/io/Externalizable.java') diff --git a/libjava/java/io/Externalizable.java b/libjava/java/io/Externalizable.java index 83f1b653ec5..f6406b0335a 100644 --- a/libjava/java/io/Externalizable.java +++ b/libjava/java/io/Externalizable.java @@ -56,55 +56,58 @@ package java.io; * created using the default no-argument constructor and the * readExternal method is used to restore the state. * - * @version 0.0 - * * @author Aaron M. Renn (arenn@urbanophile.com) */ public interface Externalizable extends Serializable { static final long serialVersionUID = -282491828744381764L; -/** - * This method restores an object's state by reading in the instance data - * for the object from the passed in stream. Note that this stream is not - * a subclass of InputStream, but rather is a class that implements - * the ObjectInput interface. That interface provides a mechanism for - * reading in Java data types from a stream. - *

- * Note that this method must be compatible with writeExternal. - * It must read back the exact same types that were written by that - * method in the exact order they were written. - *

- * If this method needs to read back an object instance, then the class - * for that object must be found and loaded. If that operation fails, - * then this method throws a ClassNotFoundException - * - * @param in An ObjectInput instance for reading in the object state - * - * @exception ClassNotFoundException If the class of an object being restored cannot be found - * @exception IOException If any other error occurs - */ -public abstract void -readExternal(ObjectInput in) throws ClassNotFoundException, IOException; + /** + * This method restores an object's state by reading in the instance data + * for the object from the passed in stream. Note that this stream is not + * a subclass of InputStream, but rather is a class that + * implements + * the ObjectInput interface. That interface provides a + * mechanism for + * reading in Java data types from a stream. + *

+ * Note that this method must be compatible with writeExternal. + * It must read back the exact same types that were written by that + * method in the exact order they were written. + *

+ * If this method needs to read back an object instance, then the class + * for that object must be found and loaded. If that operation fails, + * then this method throws a ClassNotFoundException + * + * @param in An ObjectInput instance for reading in the object + * state + * + * @exception ClassNotFoundException If the class of an object being + * restored cannot be found + * @exception IOException If any other error occurs + */ + public abstract void readExternal(ObjectInput in) + throws ClassNotFoundException, IOException; -/*************************************************************************/ + /*************************************************************************/ -/** - * This method is responsible for writing the instance data of an object - * to the passed in stream. Note that this stream is not a subclass of - * OutputStream, but rather is a class that implements the - * ObjectOutput interface. That interface provides a number of methods - * for writing Java data values to a stream. - *

- * Not that the implementation of this method must be coordinated with - * the implementation of readExternal. - * - * @param out An ObjectOutput instance for writing the object state - * - * @exception IOException If an error occurs - */ -public abstract void -writeExternal(ObjectOutput out) throws IOException; + /** + * This method is responsible for writing the instance data of an object + * to the passed in stream. Note that this stream is not a subclass of + * OutputStream, but rather is a class that implements the + * ObjectOutput interface. That interface provides a + * number of methods + * for writing Java data values to a stream. + *

+ * Not that the implementation of this method must be coordinated with + * the implementation of readExternal. + * + * @param out An ObjectOutput instance for writing the + * object state + * + * @exception IOException If an error occurs + */ + public abstract void writeExternal(ObjectOutput out) throws IOException; } // interface Externalizable -- cgit v1.2.3