| java.io.ObjectOutput
All known Subclasses: java.io.ObjectOutputStream,
ObjectOutput | public interface ObjectOutput extends DataOutput(Code) | | Streams to be used with serialization to write objects must implement this
interface. ObjectOutputStream is one example.
See Also: ObjectOutputStream See Also: ObjectInput |
Method Summary | |
public void | close() Close this ObjectOutput. | public void | flush() Flush this ObjectOutput. | public void | write(byte[] buffer) Writes the entire contents of the byte array buffer to
this ObjectOutput. | public void | write(byte[] buffer, int offset, int count) Writes count bytes from this byte array
buffer starting at offset index to this
ObjectOutput. | public void | write(int value) Writes the specified int value to this ObjectOutput. | public void | writeObject(Object obj) Writes the specified object obj to this ObjectOutput. |
close | public void close() throws IOException(Code) | | Close this ObjectOutput. Concrete implementations of this class should
free any resources during close.
throws: IOException - If an error occurs attempting to close this ObjectOutput. |
flush | public void flush() throws IOException(Code) | | Flush this ObjectOutput. Concrete implementations of this class should
ensure any pending writes are written out when this method is envoked.
throws: IOException - If an error occurs attempting to flush this ObjectOutput. |
write | public void write(byte[] buffer) throws IOException(Code) | | Writes the entire contents of the byte array buffer to
this ObjectOutput.
Parameters: buffer - the buffer to be written throws: java.io.IOException - If an error occurs attempting to write to this ObjectOutput. |
write | public void write(byte[] buffer, int offset, int count) throws IOException(Code) | | Writes count bytes from this byte array
buffer starting at offset index to this
ObjectOutput.
Parameters: buffer - the buffer to be written Parameters: offset - offset in buffer to get bytes Parameters: count - number of bytes in buffer to write throws: java.io.IOException - If an error occurs attempting to write to this ObjectOutput. |
write | public void write(int value) throws IOException(Code) | | Writes the specified int value to this ObjectOutput.
Parameters: value - the int to be written throws: java.io.IOException - If an error occurs attempting to write to this ObjectOutput. |
writeObject | public void writeObject(Object obj) throws IOException(Code) | | Writes the specified object obj to this ObjectOutput.
Parameters: obj - the object to be written throws: java.io.IOException - If an error occurs attempting to write to this ObjectOutput. |
|
|