当前页面:
在线文档首页 >
JBoss 4.0.1 sp1 common API Documentation 英文版文档
ObjectOutputStreamAdapter (JBoss/Common API) - JBoss 4.0.1 sp1 common API Documentation 英文版文档
org.jboss.util.stream
Class ObjectOutputStreamAdapter
java.lang.Object
java.io.OutputStream
java.io.ObjectOutputStream
org.jboss.util.stream.ObjectOutputStreamAdapter
- All Implemented Interfaces:
- DataOutput, ObjectOutput, ObjectStreamConstants
- Direct Known Subclasses:
- AppendingObjectOutputStream, AutoResetObjectOutputStream
- public abstract class ObjectOutputStreamAdapter
- extends ObjectOutputStream
An ObjectOutputStream
wrapping adapter.
Concurrency
This class is
not synchronized.
- Version:
- $Revision: 1.1 $
- Author:
- Jason Dillon
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.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
out
protected ObjectOutputStream out
- Nested object output stream
ObjectOutputStreamAdapter
public ObjectOutputStreamAdapter(ObjectOutputStream out)
throws IOException
- Construct a new ObjectOutputStreamAdapter.
- Parameters:
out
- An ObjectOutputStream stream.
- Throws:
IOException
- Any exception thrown by the underlying
OutputStream.
IllegalArgumentException
- Out is null.
writeObjectOverride
protected void writeObjectOverride(Object obj)
throws IOException
- Throws:
IOException
useProtocolVersion
public void useProtocolVersion(int version)
throws IOException
- Throws:
IOException
defaultWriteObject
public void defaultWriteObject()
throws IOException
- Throws:
IOException
putFields
public ObjectOutputStream.PutField putFields()
throws IOException
- Throws:
IOException
writeFields
public void writeFields()
throws IOException
- Throws:
IOException
reset
public void reset()
throws IOException
- Throws:
IOException
write
public void write(int data)
throws IOException
- Throws:
IOException
write
public void write(byte[] b)
throws IOException
- Throws:
IOException
write
public void write(byte[] b,
int off,
int len)
throws IOException
- Throws:
IOException
flush
public void flush()
throws IOException
- Throws:
IOException
close
public void close()
throws IOException
- Throws:
IOException
writeBoolean
public void writeBoolean(boolean data)
throws IOException
- Throws:
IOException
writeByte
public void writeByte(int data)
throws IOException
- Throws:
IOException
writeShort
public void writeShort(int data)
throws IOException
- Throws:
IOException
writeChar
public void writeChar(int data)
throws IOException
- Throws:
IOException
writeInt
public void writeInt(int data)
throws IOException
- Throws:
IOException
writeLong
public void writeLong(long data)
throws IOException
- Throws:
IOException
writeFloat
public void writeFloat(float data)
throws IOException
- Throws:
IOException
writeDouble
public void writeDouble(double data)
throws IOException
- Throws:
IOException
writeBytes
public void writeBytes(String data)
throws IOException
- Throws:
IOException
writeChars
public void writeChars(String data)
throws IOException
- Throws:
IOException
writeUTF
public void writeUTF(String s)
throws IOException
- Throws:
IOException
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.