|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.OutputStream
java.io.ObjectOutputStream
org.jboss.marshalling.MarshallerObjectOutputStream
public abstract class MarshallerObjectOutputStream
A marshaller's object output stream. Used by marshallers for compatibility with Java serialization. Instances of
this class may be passed in to the overriden serialization methods for a class implementing Serializable.
This class is not part of the marshalling API; rather it is intended for marshaller implementors to make it easier to develop Java serialization-compatible marshallers.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.io.ObjectOutputStream |
|---|
java.io.ObjectOutputStream.PutField |
| 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 | |
|---|---|
protected |
MarshallerObjectOutputStream(Marshaller output)
Construct a new instance that delegates to the given marshaller. |
| Method Summary | |
|---|---|
protected void |
annotateClass(java.lang.Class<?> cl)
|
protected void |
annotateProxyClass(java.lang.Class<?> cl)
|
void |
close()
|
abstract void |
defaultWriteObject()
|
protected void |
drain()
|
protected boolean |
enableReplaceObject(boolean enable)
|
void |
flush()
|
abstract java.io.ObjectOutputStream.PutField |
putFields()
|
protected java.lang.Object |
replaceObject(java.lang.Object obj)
|
void |
reset()
|
void |
useProtocolVersion(int version)
|
void |
write(byte[] buf)
|
void |
write(byte[] buf,
int off,
int len)
|
void |
write(int val)
|
void |
writeBoolean(boolean val)
|
void |
writeByte(int val)
|
void |
writeBytes(java.lang.String str)
|
void |
writeChar(int val)
|
void |
writeChars(java.lang.String str)
|
protected void |
writeClassDescriptor(java.io.ObjectStreamClass desc)
|
void |
writeDouble(double val)
|
abstract void |
writeFields()
|
void |
writeFloat(float val)
|
void |
writeInt(int val)
|
void |
writeLong(long val)
|
protected void |
writeObjectOverride(java.lang.Object obj)
|
void |
writeShort(int val)
|
protected void |
writeStreamHeader()
|
void |
writeUnshared(java.lang.Object obj)
|
void |
writeUTF(java.lang.String str)
|
| Methods inherited from class java.io.ObjectOutputStream |
|---|
writeObject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected MarshallerObjectOutputStream(Marshaller output)
throws java.io.IOException,
java.lang.SecurityException
output - the delegate marshaller
java.io.IOException - if an I/O error occurs
java.lang.SecurityException - if the caller does not have permission to construct an instance of this class| Method Detail |
|---|
protected void writeObjectOverride(java.lang.Object obj)
throws java.io.IOException
writeObjectOverride in class java.io.ObjectOutputStreamjava.io.IOException
public void writeUnshared(java.lang.Object obj)
throws java.io.IOException
writeUnshared in class java.io.ObjectOutputStreamjava.io.IOException
public void write(int val)
throws java.io.IOException
write in interface java.io.DataOutputwrite in interface java.io.ObjectOutputwrite in class java.io.ObjectOutputStreamjava.io.IOException
public void write(byte[] buf)
throws java.io.IOException
write in interface java.io.DataOutputwrite in interface java.io.ObjectOutputwrite in class java.io.ObjectOutputStreamjava.io.IOException
public void write(byte[] buf,
int off,
int len)
throws java.io.IOException
write in interface java.io.DataOutputwrite in interface java.io.ObjectOutputwrite in class java.io.ObjectOutputStreamjava.io.IOException
public void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in interface java.io.ObjectOutputflush in class java.io.ObjectOutputStreamjava.io.IOException
public void writeBoolean(boolean val)
throws java.io.IOException
writeBoolean in interface java.io.DataOutputwriteBoolean in class java.io.ObjectOutputStreamjava.io.IOException
public void writeByte(int val)
throws java.io.IOException
writeByte in interface java.io.DataOutputwriteByte in class java.io.ObjectOutputStreamjava.io.IOException
public void writeShort(int val)
throws java.io.IOException
writeShort in interface java.io.DataOutputwriteShort in class java.io.ObjectOutputStreamjava.io.IOException
public void writeChar(int val)
throws java.io.IOException
writeChar in interface java.io.DataOutputwriteChar in class java.io.ObjectOutputStreamjava.io.IOException
public void writeInt(int val)
throws java.io.IOException
writeInt in interface java.io.DataOutputwriteInt in class java.io.ObjectOutputStreamjava.io.IOException
public void writeLong(long val)
throws java.io.IOException
writeLong in interface java.io.DataOutputwriteLong in class java.io.ObjectOutputStreamjava.io.IOException
public void writeFloat(float val)
throws java.io.IOException
writeFloat in interface java.io.DataOutputwriteFloat in class java.io.ObjectOutputStreamjava.io.IOException
public void writeDouble(double val)
throws java.io.IOException
writeDouble in interface java.io.DataOutputwriteDouble in class java.io.ObjectOutputStreamjava.io.IOException
public void writeBytes(java.lang.String str)
throws java.io.IOException
writeBytes in interface java.io.DataOutputwriteBytes in class java.io.ObjectOutputStreamjava.io.IOException
public void writeChars(java.lang.String str)
throws java.io.IOException
writeChars in interface java.io.DataOutputwriteChars in class java.io.ObjectOutputStreamjava.io.IOException
public void writeUTF(java.lang.String str)
throws java.io.IOException
writeUTF in interface java.io.DataOutputwriteUTF in class java.io.ObjectOutputStreamjava.io.IOException
public final void reset()
throws java.io.IOException
reset in class java.io.ObjectOutputStreamjava.io.IOException
public final void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.io.ObjectOutputclose in class java.io.ObjectOutputStreamjava.io.IOException
public final void useProtocolVersion(int version)
throws java.io.IOException
useProtocolVersion in class java.io.ObjectOutputStreamjava.io.IOException
protected final void annotateClass(java.lang.Class<?> cl)
throws java.io.IOException
annotateClass in class java.io.ObjectOutputStreamjava.io.IOException
protected final void annotateProxyClass(java.lang.Class<?> cl)
throws java.io.IOException
annotateProxyClass in class java.io.ObjectOutputStreamjava.io.IOException
protected final java.lang.Object replaceObject(java.lang.Object obj)
throws java.io.IOException
replaceObject in class java.io.ObjectOutputStreamjava.io.IOException
protected final boolean enableReplaceObject(boolean enable)
throws java.lang.SecurityException
enableReplaceObject in class java.io.ObjectOutputStreamjava.lang.SecurityException
protected final void writeStreamHeader()
throws java.io.IOException
writeStreamHeader in class java.io.ObjectOutputStreamjava.io.IOException
protected final void writeClassDescriptor(java.io.ObjectStreamClass desc)
throws java.io.IOException
writeClassDescriptor in class java.io.ObjectOutputStreamjava.io.IOException
protected final void drain()
throws java.io.IOException
drain in class java.io.ObjectOutputStreamjava.io.IOException
public abstract void writeFields()
throws java.io.IOException
writeFields in class java.io.ObjectOutputStreamjava.io.IOException
public abstract java.io.ObjectOutputStream.PutField putFields()
throws java.io.IOException
putFields in class java.io.ObjectOutputStreamjava.io.IOException
public abstract void defaultWriteObject()
throws java.io.IOException
defaultWriteObject in class java.io.ObjectOutputStreamjava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||