diff options
author | Aaron M. Renn <arenn@urbanophile.com> | 1998-11-30 01:53:34 +0000 |
---|---|---|
committer | Aaron M. Renn <arenn@urbanophile.com> | 1998-11-30 01:53:34 +0000 |
commit | 16f7327899c587d769a23d6557aa513b4ba66b5b (patch) | |
tree | aec0698b4b663df88c7d214997aef2dc32360113 /java/io/ObjectOutput.java | |
parent | f3dfcff5e99b4875de7f2203a55202ab32b5dc31 (diff) | |
download | classpath-16f7327899c587d769a23d6557aa513b4ba66b5b.tar.gz |
Added the abstract keyword to the interface decl to bring up to spec.
Added the write(int), write(byte[], int, int) and write(byte[]) methods
to bring up to spec.
Diffstat (limited to 'java/io/ObjectOutput.java')
-rw-r--r-- | java/io/ObjectOutput.java | 43 |
1 files changed, 42 insertions, 1 deletions
diff --git a/java/io/ObjectOutput.java b/java/io/ObjectOutput.java index b42ac08c4..0c7f7e247 100644 --- a/java/io/ObjectOutput.java +++ b/java/io/ObjectOutput.java @@ -30,9 +30,50 @@ package java.io; * * @author Aaron M. Renn (arenn@urbanophile.com) */ -public interface ObjectOutput extends DataOutput +public abstract interface ObjectOutput extends DataOutput { + +/** + * This method writes the specified byte to the output stream. + * + * @param b The byte to write. + * + * @exception IOException If an error occurs. + */ +public abstract void +write(int b) throws IOException; + +/*************************************************************************/ + +/** + * This method writes all the bytes in the specified byte array to the + * output stream. + * + * @param buf The array of bytes to write. + * + * @exception IOException If an error occurs. + */ +public abstract void +write(byte[] buf) throws IOException; + +/*************************************************************************/ + +/** + * This method writes <code>len</code> bytes from the specified array + * starting at index <code>offset</code> into that array. + * + * @param buf The byte array to write from. + * @param offset The index into the byte array to start writing from. + * @param len The number of bytes to write. + * + * @exception IOException If an error occurs. + */ +public abstract void +write(byte[] buf, int offset, int len) throws IOException; + +/*************************************************************************/ + /** * This method writes a object instance to a stream. The format of the * data written is determined by the actual implementation of this method |