java.io
Interface ObjectOutput
java.lang.Object
|
+--java.io.DataOutput
|
+--java.io.ObjectOutput
All Implemented Interfaces:
DataOutput
public interface
ObjectOutputimplements
DataOutput This interface extends DataOutput
to provide the additional
facility of writing object instances to a stream. It also adds some
additional methods to make the interface more OutputStream
like.
Author:- Aaron M. Renn (arenn@urbanophile.com)
close
public void close()
This method closes the underlying stream.
Throws:
flush
public void flush()
This method causes any buffered data to be flushed out to the underlying
stream
Throws:
write
public void write(byte[] buf)
This method writes all the bytes in the specified byte array to the
output stream.
Parameters:
Throws:
write
public void write(byte[] buf, int offset, int len)
This method writes len
bytes from the specified array
starting at index offset
into that array.
Parameters:
Throws:
write
public void write(int b)
This method writes the specified byte to the output stream.
Parameters:
Throws:
writeObject
public void writeObject(java.lang.Object obj)
This method writes a object instance to a stream. The format of the
data written is determined by the actual implementation of this method
Parameters:
Throws:
DataOutput
to provide the additional facility of writing object instances to a stream. It also adds some additional methods to make the interface moreOutputStream
like.