org.apache.openejb.util.io
Class ObjectOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.apache.openejb.util.io.ObjectOutputStream
All Implemented Interfaces:
Closeable, DataOutput, Flushable, ObjectOutput, ObjectStreamConstants

public class ObjectOutputStream
extends OutputStream
implements ObjectOutput, ObjectStreamConstants


Field Summary
 
Fields inherited from interface 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, SUBCLASS_IMPLEMENTATION_PERMISSION, SUBSTITUTION_PERMISSION, 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(OutputStream out)
           
 
Method Summary
 void flush()
           
 void reset()
           
 void serializeObject(Object obj)
           
 void serializeObject(Object obj, OutputStream out)
           
 int size()
           
 byte[] toByteArray()
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 void writeBoolean(boolean v)
           
 void writeByte(int v)
           
 void writeBytes(String s)
           
 void writeChar(int v)
           
 void writeChars(String s)
           
 void writeDouble(double v)
           
 void writeException(Throwable th)
           
 void writeFloat(float v)
           
 void writeInt(int v)
           
 void writeLong(long v)
           
 void writeObject(Object obj)
           
 void writeReset()
           
 void writeShort(int v)
           
 void writeString(String s)
           
 void writeUTF(String str)
           
 
Methods inherited from class java.io.OutputStream
close, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.io.ObjectOutput
close, write
 

Constructor Detail

ObjectOutputStream

public ObjectOutputStream(OutputStream out)
                   throws IOException
Throws:
IOException
Method Detail

reset

public void reset()
           throws IOException
Throws:
IOException

serializeObject

public void serializeObject(Object obj,
                            OutputStream out)
                     throws NotSerializableException,
                            IOException
Throws:
NotSerializableException
IOException

serializeObject

public void serializeObject(Object obj)
                     throws NotSerializableException,
                            IOException
Throws:
NotSerializableException
IOException

writeObject

public void writeObject(Object obj)
                 throws IOException
Specified by:
writeObject in interface ObjectOutput
Throws:
IOException

writeString

public void writeString(String s)
                 throws IOException
Throws:
IOException

writeException

public void writeException(Throwable th)
                    throws IOException
Throws:
IOException

writeReset

public void writeReset()
                throws IOException
Throws:
IOException

write

public void write(int b)
Specified by:
write in interface DataOutput
Specified by:
write in interface ObjectOutput
Specified by:
write in class OutputStream

write

public void write(byte[] b,
                  int off,
                  int len)
Specified by:
write in interface DataOutput
Specified by:
write in interface ObjectOutput
Overrides:
write in class OutputStream

flush

public void flush()
           throws IOException
Specified by:
flush in interface Flushable
Specified by:
flush in interface ObjectOutput
Overrides:
flush in class OutputStream
Throws:
IOException

toByteArray

public byte[] toByteArray()

size

public int size()

writeBoolean

public final void writeBoolean(boolean v)
                        throws IOException
Specified by:
writeBoolean in interface DataOutput
Throws:
IOException

writeByte

public final void writeByte(int v)
                     throws IOException
Specified by:
writeByte in interface DataOutput
Throws:
IOException

writeShort

public final void writeShort(int v)
                      throws IOException
Specified by:
writeShort in interface DataOutput
Throws:
IOException

writeChar

public final void writeChar(int v)
                     throws IOException
Specified by:
writeChar in interface DataOutput
Throws:
IOException

writeInt

public final void writeInt(int v)
                    throws IOException
Specified by:
writeInt in interface DataOutput
Throws:
IOException

writeLong

public final void writeLong(long v)
                     throws IOException
Specified by:
writeLong in interface DataOutput
Throws:
IOException

writeFloat

public final void writeFloat(float v)
                      throws IOException
Specified by:
writeFloat in interface DataOutput
Throws:
IOException

writeDouble

public final void writeDouble(double v)
                       throws IOException
Specified by:
writeDouble in interface DataOutput
Throws:
IOException

writeBytes

public final void writeBytes(String s)
                      throws IOException
Specified by:
writeBytes in interface DataOutput
Throws:
IOException

writeChars

public final void writeChars(String s)
                      throws IOException
Specified by:
writeChars in interface DataOutput
Throws:
IOException

writeUTF

public final void writeUTF(String str)
                    throws IOException
Specified by:
writeUTF in interface DataOutput
Throws:
IOException


Copyright © 1999-2013 The Apache OpenEJB development community. All Rights Reserved.