org.jboss.util.stream
Class ObjectOutputStreamAdapter
java.lang.Object
java.io.OutputStream
java.io.ObjectOutputStream
org.jboss.util.stream.ObjectOutputStreamAdapter
- All Implemented Interfaces:
- java.io.DataOutput, java.io.ObjectOutput, java.io.ObjectStreamConstants
- Direct Known Subclasses:
- AppendingObjectOutputStream (src) , AutoResetObjectOutputStream (src)
- public abstract class ObjectOutputStreamAdapter
- extends java.io.ObjectOutputStream
An ObjectOutputStream
wrapping adapter.
Concurrency
This class is not synchronized.
Nested classes inherited from class java.io.ObjectOutputStream |
java.io.ObjectOutputStream.PutField |
Field Summary |
protected java.io.ObjectOutputStream |
out
Nested object output stream |
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 |
annotateClass, annotateProxyClass, drain, enableReplaceObject, replaceObject, writeClassDescriptor, writeObject, writeStreamHeader, writeUnshared |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
out
protected java.io.ObjectOutputStream out
- Nested object output stream
ObjectOutputStreamAdapter
public ObjectOutputStreamAdapter(java.io.ObjectOutputStream out)
throws java.io.IOException
- Construct a new ObjectOutputStreamAdapter.
- Parameters:
out
- An ObjectOutputStream stream.
- Throws:
java.io.IOException
- Any exception thrown by the underlying
OutputStream.
java.lang.IllegalArgumentException
- Out is null.
writeObjectOverride
protected void writeObjectOverride(java.lang.Object obj)
throws java.io.IOException
- Throws:
java.io.IOException
useProtocolVersion
public void useProtocolVersion(int version)
throws java.io.IOException
- Throws:
java.io.IOException
defaultWriteObject
public void defaultWriteObject()
throws java.io.IOException
- Throws:
java.io.IOException
putFields
public java.io.ObjectOutputStream.PutField putFields()
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 data)
throws java.io.IOException
- Throws:
java.io.IOException
write
public void write(byte[] b)
throws java.io.IOException
- Throws:
java.io.IOException
write
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
- Throws:
java.io.IOException
flush
public void flush()
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException
writeBoolean
public void writeBoolean(boolean data)
throws java.io.IOException
- Throws:
java.io.IOException
writeByte
public void writeByte(int data)
throws java.io.IOException
- Throws:
java.io.IOException
writeShort
public void writeShort(int data)
throws java.io.IOException
- Throws:
java.io.IOException
writeChar
public void writeChar(int data)
throws java.io.IOException
- Throws:
java.io.IOException
writeInt
public void writeInt(int data)
throws java.io.IOException
- Throws:
java.io.IOException
writeLong
public void writeLong(long data)
throws java.io.IOException
- Throws:
java.io.IOException
writeFloat
public void writeFloat(float data)
throws java.io.IOException
- Throws:
java.io.IOException
writeDouble
public void writeDouble(double data)
throws java.io.IOException
- Throws:
java.io.IOException
writeBytes
public void writeBytes(java.lang.String data)
throws java.io.IOException
- Throws:
java.io.IOException
writeChars
public void writeChars(java.lang.String data)
throws java.io.IOException
- Throws:
java.io.IOException
writeUTF
public void writeUTF(java.lang.String s)
throws java.io.IOException
- Throws:
java.io.IOException