org.jboss.serial.persister
Class ObjectOutputStreamProxy
java.lang.Object
java.io.OutputStream
java.io.ObjectOutputStream
org.jboss.serial.persister.ObjectOutputStreamProxy
- All Implemented Interfaces:
- java.io.DataOutput, java.io.ObjectOutput, java.io.ObjectStreamConstants
- public class ObjectOutputStreamProxy
- extends java.io.ObjectOutputStream
$Id: ObjectOutputStreamProxy.java,v 1.4 2005/09/25 21:42:50 csuconic Exp $
- Author:
- Clebert Suconic
Nested classes inherited from class java.io.ObjectOutputStream |
java.io.ObjectOutputStream.PutField |
Fields inherited from interface java.io.ObjectStreamConstants |
baseWireHandle, PROTOCOL_VERSION_1, PROTOCOL_VERSION_2, SC_BLOCK_DATA, 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_EXCEPTION, TC_LONGSTRING, TC_MAX, TC_NULL, TC_OBJECT, TC_PROXYCLASSDESC, TC_REFERENCE, TC_RESET, TC_STRING |
Methods inherited from class java.io.ObjectOutputStream |
useProtocolVersion, writeObject |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectOutputStreamProxy
public ObjectOutputStreamProxy(java.io.ObjectOutput output,
java.lang.Object currentObj,
ClassMetaData currentMetaClass,
ObjectSubstitutionInterface currentSubstitution)
throws java.io.IOException
writeUnshared
public void writeUnshared(java.lang.Object obj)
throws java.io.IOException
- Throws:
java.io.IOException
defaultWriteObject
public void defaultWriteObject()
throws java.io.IOException
- Throws:
java.io.IOException
writeFields
public void writeFields()
throws java.io.IOException
- Throws:
java.io.IOException
reset
public void reset()
throws java.io.IOException
- Throws:
java.io.IOException
write
public void write(int val)
throws java.io.IOException
- Writes a byte. This method will block until the byte is actually
written.
- Parameters:
val
- the byte to be written to the stream
- Throws:
java.io.IOException
- If an I/O error has occurred.
write
public void write(byte[] buf)
throws java.io.IOException
- Writes an array of bytes. This method will block until the bytes are
actually written.
- Parameters:
buf
- the data to be written
- Throws:
java.io.IOException
- If an I/O error has occurred.
write
public void write(byte[] buf,
int off,
int len)
throws java.io.IOException
- Throws:
java.io.IOException
flush
public void flush()
throws java.io.IOException
- Flushes the stream. This will write any buffered output bytes and flush
through to the underlying stream.
- Throws:
java.io.IOException
- If an I/O error has occurred.
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException
writeBoolean
public void writeBoolean(boolean val)
throws java.io.IOException
- Throws:
java.io.IOException
writeByte
public void writeByte(int val)
throws java.io.IOException
- Throws:
java.io.IOException
writeShort
public void writeShort(int val)
throws java.io.IOException
- Throws:
java.io.IOException
writeChar
public void writeChar(int val)
throws java.io.IOException
- Throws:
java.io.IOException
writeInt
public void writeInt(int val)
throws java.io.IOException
- Throws:
java.io.IOException
writeLong
public void writeLong(long val)
throws java.io.IOException
- Throws:
java.io.IOException
writeFloat
public void writeFloat(float val)
throws java.io.IOException
- Throws:
java.io.IOException
writeDouble
public void writeDouble(double val)
throws java.io.IOException
- Throws:
java.io.IOException
writeBytes
public void writeBytes(java.lang.String str)
throws java.io.IOException
- Throws:
java.io.IOException
writeChars
public void writeChars(java.lang.String str)
throws java.io.IOException
- Throws:
java.io.IOException
writeUTF
public void writeUTF(java.lang.String str)
throws java.io.IOException
- Throws:
java.io.IOException
putFields
public java.io.ObjectOutputStream.PutField putFields()
throws java.io.IOException
- Throws:
java.io.IOException
JBoss Serialization, a new approach to java-serialization.