org.apache.openejb.util.io
Class ObjectOutputStream
java.lang.Object
java.io.OutputStream
org.apache.openejb.util.io.ObjectOutputStream
- All Implemented Interfaces:
- java.io.Closeable, java.io.DataOutput, java.io.Flushable, java.io.ObjectOutput, java.io.ObjectStreamConstants
public class ObjectOutputStream
- extends java.io.OutputStream
- implements java.io.ObjectOutput, java.io.ObjectStreamConstants
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 |
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 |
ObjectOutputStream
public ObjectOutputStream(java.io.OutputStream out)
throws java.io.IOException
- Throws:
java.io.IOException
reset
public void reset()
throws java.io.IOException
- Throws:
java.io.IOException
serializeObject
public void serializeObject(java.lang.Object obj,
java.io.OutputStream out)
throws java.io.NotSerializableException,
java.io.IOException
- Throws:
java.io.NotSerializableException
java.io.IOException
serializeObject
public void serializeObject(java.lang.Object obj)
throws java.io.NotSerializableException,
java.io.IOException
- Throws:
java.io.NotSerializableException
java.io.IOException
writeObject
public void writeObject(java.lang.Object obj)
throws java.io.IOException
- Specified by:
writeObject
in interface java.io.ObjectOutput
- Throws:
java.io.IOException
writeString
public void writeString(java.lang.String s)
throws java.io.IOException
- Throws:
java.io.IOException
writeException
public void writeException(java.lang.Throwable th)
throws java.io.IOException
- Throws:
java.io.IOException
writeReset
public void writeReset()
throws java.io.IOException
- Throws:
java.io.IOException
write
public void write(int b)
- Specified by:
write
in interface java.io.DataOutput
- Specified by:
write
in interface java.io.ObjectOutput
- Specified by:
write
in class java.io.OutputStream
write
public void write(byte[] b,
int off,
int len)
- Specified by:
write
in interface java.io.DataOutput
- Specified by:
write
in interface java.io.ObjectOutput
- Overrides:
write
in class java.io.OutputStream
flush
public void flush()
throws java.io.IOException
- Specified by:
flush
in interface java.io.Flushable
- Specified by:
flush
in interface java.io.ObjectOutput
- Overrides:
flush
in class java.io.OutputStream
- Throws:
java.io.IOException
toByteArray
public byte[] toByteArray()
size
public int size()
writeBoolean
public final void writeBoolean(boolean v)
throws java.io.IOException
- Specified by:
writeBoolean
in interface java.io.DataOutput
- Throws:
java.io.IOException
writeByte
public final void writeByte(int v)
throws java.io.IOException
- Specified by:
writeByte
in interface java.io.DataOutput
- Throws:
java.io.IOException
writeShort
public final void writeShort(int v)
throws java.io.IOException
- Specified by:
writeShort
in interface java.io.DataOutput
- Throws:
java.io.IOException
writeChar
public final void writeChar(int v)
throws java.io.IOException
- Specified by:
writeChar
in interface java.io.DataOutput
- Throws:
java.io.IOException
writeInt
public final void writeInt(int v)
throws java.io.IOException
- Specified by:
writeInt
in interface java.io.DataOutput
- Throws:
java.io.IOException
writeLong
public final void writeLong(long v)
throws java.io.IOException
- Specified by:
writeLong
in interface java.io.DataOutput
- Throws:
java.io.IOException
writeFloat
public final void writeFloat(float v)
throws java.io.IOException
- Specified by:
writeFloat
in interface java.io.DataOutput
- Throws:
java.io.IOException
writeDouble
public final void writeDouble(double v)
throws java.io.IOException
- Specified by:
writeDouble
in interface java.io.DataOutput
- Throws:
java.io.IOException
writeBytes
public final void writeBytes(java.lang.String s)
throws java.io.IOException
- Specified by:
writeBytes
in interface java.io.DataOutput
- Throws:
java.io.IOException
writeChars
public final void writeChars(java.lang.String s)
throws java.io.IOException
- Specified by:
writeChars
in interface java.io.DataOutput
- Throws:
java.io.IOException
writeUTF
public final void writeUTF(java.lang.String str)
throws java.io.IOException
- Specified by:
writeUTF
in interface java.io.DataOutput
- Throws:
java.io.IOException
Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.