Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

oracle.adfnmc.java.io
Interface ObjectOutput

All Superinterfaces:
java.io.DataOutput
All Known Implementing Classes:
ObjectOutputStream

public interface ObjectOutput
extends java.io.DataOutput

Streams to be used with serialization to write objects must implement this interface. ObjectOutputStream is one example.

See Also:
ObjectOutputStream, ObjectInput

Method Summary
 void close()
          Close this ObjectOutput.
 void flush()
          Flush this ObjectOutput.
 void write(byte[] buffer)
          Writes the entire contents of the byte array buffer to this ObjectOutput.
 void write(byte[] buffer, int offset, int count)
          Writes count bytes from this byte array buffer starting at offset index to this ObjectOutput.
 void write(int value)
          Writes the specified int value to this ObjectOutput.
 void writeObject(java.lang.Object obj)
          Writes the specified object obj to this ObjectOutput.
 
Methods inherited from interface java.io.DataOutput
writeBoolean, writeByte, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
 

Method Detail

close

void close()
           throws java.io.IOException
Close this ObjectOutput. Concrete implementations of this class should free any resources during close.

Throws:
java.io.IOException - If an error occurs attempting to close this ObjectOutput.

flush

void flush()
           throws java.io.IOException
Flush this ObjectOutput. Concrete implementations of this class should ensure any pending writes are written out when this method is envoked.

Throws:
java.io.IOException - If an error occurs attempting to flush this ObjectOutput.

write

void write(byte[] buffer)
           throws java.io.IOException
Writes the entire contents of the byte array buffer to this ObjectOutput.

Specified by:
write in interface java.io.DataOutput
Parameters:
buffer - the buffer to be written
Throws:
java.io.IOException - If an error occurs attempting to write to this ObjectOutput.

write

void write(byte[] buffer,
           int offset,
           int count)
           throws java.io.IOException
Writes count bytes from this byte array buffer starting at offset index to this ObjectOutput.

Specified by:
write in interface java.io.DataOutput
Parameters:
buffer - the buffer to be written
offset - offset in buffer to get bytes
count - number of bytes in buffer to write
Throws:
java.io.IOException - If an error occurs attempting to write to this ObjectOutput.

write

void write(int value)
           throws java.io.IOException
Writes the specified int value to this ObjectOutput.

Specified by:
write in interface java.io.DataOutput
Parameters:
value - the int to be written
Throws:
java.io.IOException - If an error occurs attempting to write to this ObjectOutput.

writeObject

void writeObject(java.lang.Object obj)
                 throws java.io.IOException
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.

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.