java.io
Interface ObjectOutput

public interface ObjectOutput
extends DataOutput
ObjectOutput extends the DataOutput interface to include writing of objects. DataOutput includes methods for output of primitive types, ObjectOutput extends that interface to include objects, arrays, and Strings.
SinceJDK1.1
Version1.23, 05/05/07
Authorunascribed
Wiki javadoc Use textile entry format.
Add your comments here.
Method Summary
void close()
Closes the stream.
void flush()
Flushes the stream.
void write( int b )
Writes a byte.
void write( byte [] b )
Writes an array of bytes.
void write( byte [] b, int off, int len )
Writes a sub array of bytes.
void writeObject( Object obj )
Write an object to the underlying storage or stream.
close
public void close ( )
throws
Closes the stream. This method must be called to release any resources associated with the stream.
Returns void No description provided.
Exceptions
IOException If an I/O error has occurred.
Wiki javadoc Use textile entry format.
Add your comments here.
flush
public void flush ( )
throws
Flushes the stream. This will write any buffered output bytes.
Returns void No description provided.
Exceptions
IOException If an I/O error has occurred.
Wiki javadoc Use textile entry format.
Add your comments here.
write
public void write ( int b )
throws
Writes a byte. This method will block until the byte is actually written.
Implements method in DataOutput
Parameters
TypeNameDescription
int b the byte
Returns void No description provided.
Exceptions
IOException If an I/O error has occurred.
Wiki javadoc Use textile entry format.
Add your comments here.
write
public void write ( byte [] b )
throws
Writes an array of bytes. This method will block until the bytes are actually written.
Implements method in DataOutput
Parameters
TypeNameDescription
byte[] b the data to be written
Returns void No description provided.
Exceptions
IOException If an I/O error has occurred.
Wiki javadoc Use textile entry format.
Add your comments here.
write
public void write ( byte [] b, int off, int len )
throws
Writes a sub array of bytes.
Implements method in DataOutput
Parameters
TypeNameDescription
byte[] b the data to be written
int off the start offset in the data
int len the number of bytes that are written
Returns void No description provided.
Exceptions
IOException If an I/O error has occurred.
Wiki javadoc Use textile entry format.
Add your comments here.
writeObject
public void writeObject ( Object obj )
throws
Write an object to the underlying storage or stream. The class that implements this interface defines how the object is written.
Parameters
TypeNameDescription
Object obj the object to be written
Returns void No description provided.
Exceptions
IOException Any of the usual Input/Output related exceptions.
Wiki javadoc Use textile entry format.
Add your comments here.