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

E17503-02

oracle.adfnmc.java.io
Class ObjectOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by oracle.adfnmc.java.io.ObjectOutputStream
All Implemented Interfaces:
java.io.DataOutput, ObjectOutput, ObjectStreamConstants

public class ObjectOutputStream
extends java.io.OutputStream
implements ObjectStreamConstants, ObjectOutput


Field Summary
static java.lang.Class CLASS_INSTANCE
           
 
Fields inherited from interface oracle.adfnmc.java.io.ObjectStreamConstants
baseWireHandle, PROTOCOL_VERSION_1, PROTOCOL_VERSION_2, SC_BLOCK_DATA, SC_ENUM, SC_EXTERNALIZABLE, SC_SERIALIZABLE, SC_WRITE_METHOD, STREAM_MAGIC, STREAM_VERSION, TC_ARRAY, TC_BASE, TC_BLOCKDATA, TC_BLOCKDATALONG, TC_CLASS, TC_CLASSDESC, TC_ENDBLOCKDATA, TC_ENUM, TC_EXCEPTION, TC_LONGSTRING, TC_MAX, TC_NULL, TC_OBJECT, TC_PROXYCLASSDESC, TC_REFERENCE, TC_RESET, TC_STRING
 
Constructor Summary
ObjectOutputStream(java.io.OutputStream output)
           
 
Method Summary
 void defaultWriteObject()
          Default method to write objects into the receiver.
protected  boolean enableReplaceObject(boolean enable)
           
 void write(byte[] buffer)
          Writes the entire contents of the byte array buffer to this ObjectOutputStream.
 void write(byte[] buffer, int offset, int length)
          Writes length bytes from the byte array buffer starting at offset offset to the ObjectOutputStream.
 void write(int value)
          Write one byte (value) into the receiver's underlying stream.
 void writeBoolean(boolean value)
          Write primitive data of type boolean (value)into the receiver's underlying stream.
 void writeByte(int value)
          Write primitive data of type byte (value)into the receiver's underlying stream.
 void writeChar(int value)
          Write primitive data of type char (value)into the receiver's underlying stream.
 void writeChars(java.lang.String value)
          Write a String as a sequence of char, as primitive data (value) into the receiver's underlying stream.
 void writeDouble(double value)
          Write primitive data of type double (value)into the receiver's underlying stream.
 void writeFloat(float value)
          Write primitive data of type float (value)into the receiver's underlying stream.
 void writeInt(int value)
          Write primitive data of type int (value)into the receiver's underlying stream.
 void writeLong(long value)
          Write primitive data of type long (value)into the receiver's underlying stream.
 void writeObject(java.lang.Object obj)
          Writes the specified object obj to this ObjectOutput.
 void writeShort(int value)
          Write primitive data of type short (value)into the receiver's underlying stream.
 void writeUTF(java.lang.String value)
          Write primitive data of type String (value) in UTF format into the receiver's underlying stream.
 
Methods inherited from class java.io.OutputStream
close, flush
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface oracle.adfnmc.java.io.ObjectOutput
close, flush
 

Field Detail

CLASS_INSTANCE

public static final java.lang.Class CLASS_INSTANCE
Constructor Detail

ObjectOutputStream

public ObjectOutputStream(java.io.OutputStream output)
                   throws java.io.IOException
Throws:
java.io.IOException
Method Detail

write

public void write(int value)
           throws java.io.IOException
Write one byte (value) into the receiver's underlying stream.

Specified by:
write in interface java.io.DataOutput
Specified by:
write in interface ObjectOutput
Specified by:
write in class java.io.OutputStream
Parameters:
value - The primitive data to write. Only the lower byte is written.
Throws:
java.io.IOException - If an IO exception happened when writing the byte.

write

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

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

write

public void write(byte[] buffer,
                  int offset,
                  int length)
           throws java.io.IOException
Writes length bytes from the byte array buffer starting at offset offset to the ObjectOutputStream.

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

writeBoolean

public void writeBoolean(boolean value)
                  throws java.io.IOException
Write primitive data of type boolean (value)into the receiver's underlying stream.

Specified by:
writeBoolean in interface java.io.DataOutput
Parameters:
value - The primitive data to write
Throws:
java.io.IOException - If an IO exception happened when writing the primitive data.

writeByte

public void writeByte(int value)
               throws java.io.IOException
Write primitive data of type byte (value)into the receiver's underlying stream.

Specified by:
writeByte in interface java.io.DataOutput
Parameters:
value - The primitive data to write
Throws:
java.io.IOException - If an IO exception happened when writing the primitive data.

writeChar

public void writeChar(int value)
               throws java.io.IOException
Write primitive data of type char (value)into the receiver's underlying stream.

Specified by:
writeChar in interface java.io.DataOutput
Parameters:
value - The primitive data to write
Throws:
java.io.IOException - If an IO exception happened when writing the primitive data.

writeChars

public void writeChars(java.lang.String value)
                throws java.io.IOException
Write a String as a sequence of char, as primitive data (value) into the receiver's underlying stream.

Specified by:
writeChars in interface java.io.DataOutput
Parameters:
value - The primitive data to write
Throws:
java.io.IOException - If an IO exception happened when writing the primitive data.

writeDouble

public void writeDouble(double value)
                 throws java.io.IOException
Write primitive data of type double (value)into the receiver's underlying stream.

Specified by:
writeDouble in interface java.io.DataOutput
Parameters:
value - The primitive data to write
Throws:
java.io.IOException - If an IO exception happened when writing the primitive data.

writeFloat

public void writeFloat(float value)
                throws java.io.IOException
Write primitive data of type float (value)into the receiver's underlying stream.

Specified by:
writeFloat in interface java.io.DataOutput
Parameters:
value - The primitive data to write
Throws:
java.io.IOException - If an IO exception happened when writing the primitive data.

writeInt

public void writeInt(int value)
              throws java.io.IOException
Write primitive data of type int (value)into the receiver's underlying stream.

Specified by:
writeInt in interface java.io.DataOutput
Parameters:
value - The primitive data to write
Throws:
java.io.IOException - If an IO exception happened when writing the primitive data.

writeLong

public void writeLong(long value)
               throws java.io.IOException
Write primitive data of type long (value)into the receiver's underlying stream.

Specified by:
writeLong in interface java.io.DataOutput
Parameters:
value - The primitive data to write
Throws:
java.io.IOException - If an IO exception happened when writing the primitive data.

writeShort

public void writeShort(int value)
                throws java.io.IOException
Write primitive data of type short (value)into the receiver's underlying stream.

Specified by:
writeShort in interface java.io.DataOutput
Parameters:
value - The primitive data to write
Throws:
java.io.IOException - If an IO exception happened when writing the primitive data.

writeObject

public void writeObject(java.lang.Object obj)
Description copied from interface: ObjectOutput
Writes the specified object obj to this ObjectOutput.

Specified by:
writeObject in interface ObjectOutput
Parameters:
obj - the object to be written

writeUTF

public void writeUTF(java.lang.String value)
              throws java.io.IOException
Write primitive data of type String (value) in UTF format into the receiver's underlying stream.

Specified by:
writeUTF in interface java.io.DataOutput
Parameters:
value - The primitive data to write
Throws:
java.io.IOException - If an IO exception happened when writing the primitive data.

defaultWriteObject

public void defaultWriteObject()
                        throws java.io.IOException
Default method to write objects into the receiver. Fields defined in the object's class and superclasses (which are Serializable) will be saved.

Throws:
java.io.IOException - If an IO error occurs attempting to write the object data
See Also:
ObjectInputStream.defaultReadObject()

enableReplaceObject

protected boolean enableReplaceObject(boolean enable)

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.