aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/io/Externalizable.java
diff options
context:
space:
mode:
authorMichael Koch <konqueror@gmx.de>2003-03-18 07:50:19 +0000
committerMichael Koch <mkoch@gcc.gnu.org>2003-03-18 07:50:19 +0000
commitfddab7dc9b09a03abf7e066fdf88fbf00b2bab89 (patch)
treebcc9d044203d9b0ee62a6e7dc4d0e991ed1d76e8 /libjava/java/io/Externalizable.java
parent71a15b1586df418072fefeaa88cf780a15880e93 (diff)
downloadgcc-fddab7dc9b09a03abf7e066fdf88fbf00b2bab89.zip
gcc-fddab7dc9b09a03abf7e066fdf88fbf00b2bab89.tar.gz
gcc-fddab7dc9b09a03abf7e066fdf88fbf00b2bab89.tar.bz2
BufferedOutputStream.java, [...]: More merges from classpath.
2003-03-18 Michael Koch <konqueror@gmx.de> * 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
Diffstat (limited to 'libjava/java/io/Externalizable.java')
-rw-r--r--libjava/java/io/Externalizable.java85
1 files changed, 44 insertions, 41 deletions
diff --git a/libjava/java/io/Externalizable.java b/libjava/java/io/Externalizable.java
index 83f1b65..f6406b0 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
* <code>readExternal</code> 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 <code>InputStream</code>, but rather is a class that implements
- * the <code>ObjectInput</code> interface. That interface provides a mechanism for
- * reading in Java data types from a stream.
- * <p>
- * Note that this method must be compatible with <code>writeExternal</code>.
- * It must read back the exact same types that were written by that
- * method in the exact order they were written.
- * <p>
- * 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 <code>ClassNotFoundException</code>
- *
- * @param in An <code>ObjectInput</code> 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 <code>InputStream</code>, but rather is a class that
+ * implements
+ * the <code>ObjectInput</code> interface. That interface provides a
+ * mechanism for
+ * reading in Java data types from a stream.
+ * <p>
+ * Note that this method must be compatible with <code>writeExternal</code>.
+ * It must read back the exact same types that were written by that
+ * method in the exact order they were written.
+ * <p>
+ * 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 <code>ClassNotFoundException</code>
+ *
+ * @param in An <code>ObjectInput</code> 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
- * <code>OutputStream</code>, but rather is a class that implements the
- * <code>ObjectOutput</code> interface. That interface provides a number of methods
- * for writing Java data values to a stream.
- * <p>
- * Not that the implementation of this method must be coordinated with
- * the implementation of <code>readExternal</code>.
- *
- * @param out An <code>ObjectOutput</code> 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
+ * <code>OutputStream</code>, but rather is a class that implements the
+ * <code>ObjectOutput</code> interface. That interface provides a
+ * number of methods
+ * for writing Java data values to a stream.
+ * <p>
+ * Not that the implementation of this method must be coordinated with
+ * the implementation of <code>readExternal</code>.
+ *
+ * @param out An <code>ObjectOutput</code> instance for writing the
+ * object state
+ *
+ * @exception IOException If an error occurs
+ */
+ public abstract void writeExternal(ObjectOutput out) throws IOException;
} // interface Externalizable