Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.io

Interface ObjectOutput

java.lang.Object
|
+--java.io.DataOutput
   |
   +--java.io.ObjectOutput

All Implemented Interfaces:

DataOutput


public interface ObjectOutput

implements 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:

Method Summary

voidclose()

This method closes the underlying stream.
voidflush()

This method causes any buffered data to be flushed out to the underlying stream
voidwrite(int b)

This method writes the specified byte to the output stream.
voidwrite(byte[] buf)

This method writes all the bytes in the specified byte array to the output stream.
voidwrite(byte[] buf, int offset, int len)

This method writes len bytes from the specified array starting at index offset into that array.
voidwriteObject(java.lang.Object obj)

This method writes a object instance to a stream.

Method Details

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: