|
JBoss Marshalling 1.2.1.GA | |||||||||
| 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 |
|---|
ObjectOutputStream.PutField |
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
protected |
MarshallerObjectOutputStream(Marshaller output)
Construct a new instance that delegates to the given marshaller. |
| Method Summary | |
|---|---|
protected void |
annotateClass(Class<?> cl)
|
protected void |
annotateProxyClass(Class<?> cl)
|
void |
close()
|
abstract void |
defaultWriteObject()
|
protected void |
drain()
|
protected boolean |
enableReplaceObject(boolean enable)
|
void |
flush()
|
abstract ObjectOutputStream.PutField |
putFields()
|
protected Object |
replaceObject(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(String str)
|
void |
writeChar(int val)
|
void |
writeChars(String str)
|
protected void |
writeClassDescriptor(ObjectStreamClass desc)
|
void |
writeDouble(double val)
|
abstract void |
writeFields()
|
void |
writeFloat(float val)
|
void |
writeInt(int val)
|
void |
writeLong(long val)
|
protected void |
writeObjectOverride(Object obj)
|
void |
writeShort(int val)
|
protected void |
writeStreamHeader()
|
void |
writeUnshared(Object obj)
|
void |
writeUTF(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 IOException,
SecurityException
output - the delegate marshaller
IOException - if an I/O error occurs
SecurityException - if the caller does not have permission to construct an instance of this class| Method Detail |
|---|
protected void writeObjectOverride(Object obj)
throws IOException
writeObjectOverride in class ObjectOutputStreamIOException
public void writeUnshared(Object obj)
throws IOException
writeUnshared in class ObjectOutputStreamIOException
public void write(int val)
throws IOException
write in interface DataOutputwrite in interface ObjectOutputwrite in class ObjectOutputStreamIOException
public void write(byte[] buf)
throws IOException
write in interface DataOutputwrite in interface ObjectOutputwrite in class ObjectOutputStreamIOException
public void write(byte[] buf,
int off,
int len)
throws IOException
write in interface DataOutputwrite in interface ObjectOutputwrite in class ObjectOutputStreamIOException
public void flush()
throws IOException
flush in interface Flushableflush in interface ObjectOutputflush in class ObjectOutputStreamIOException
public void writeBoolean(boolean val)
throws IOException
writeBoolean in interface DataOutputwriteBoolean in class ObjectOutputStreamIOException
public void writeByte(int val)
throws IOException
writeByte in interface DataOutputwriteByte in class ObjectOutputStreamIOException
public void writeShort(int val)
throws IOException
writeShort in interface DataOutputwriteShort in class ObjectOutputStreamIOException
public void writeChar(int val)
throws IOException
writeChar in interface DataOutputwriteChar in class ObjectOutputStreamIOException
public void writeInt(int val)
throws IOException
writeInt in interface DataOutputwriteInt in class ObjectOutputStreamIOException
public void writeLong(long val)
throws IOException
writeLong in interface DataOutputwriteLong in class ObjectOutputStreamIOException
public void writeFloat(float val)
throws IOException
writeFloat in interface DataOutputwriteFloat in class ObjectOutputStreamIOException
public void writeDouble(double val)
throws IOException
writeDouble in interface DataOutputwriteDouble in class ObjectOutputStreamIOException
public void writeBytes(String str)
throws IOException
writeBytes in interface DataOutputwriteBytes in class ObjectOutputStreamIOException
public void writeChars(String str)
throws IOException
writeChars in interface DataOutputwriteChars in class ObjectOutputStreamIOException
public void writeUTF(String str)
throws IOException
writeUTF in interface DataOutputwriteUTF in class ObjectOutputStreamIOException
public final void reset()
throws IOException
reset in class ObjectOutputStreamIOException
public final void close()
throws IOException
close in interface Closeableclose in interface ObjectOutputclose in class ObjectOutputStreamIOException
public final void useProtocolVersion(int version)
throws IOException
useProtocolVersion in class ObjectOutputStreamIOException
protected final void annotateClass(Class<?> cl)
throws IOException
annotateClass in class ObjectOutputStreamIOException
protected final void annotateProxyClass(Class<?> cl)
throws IOException
annotateProxyClass in class ObjectOutputStreamIOException
protected final Object replaceObject(Object obj)
throws IOException
replaceObject in class ObjectOutputStreamIOException
protected final boolean enableReplaceObject(boolean enable)
throws SecurityException
enableReplaceObject in class ObjectOutputStreamSecurityException
protected final void writeStreamHeader()
throws IOException
writeStreamHeader in class ObjectOutputStreamIOException
protected final void writeClassDescriptor(ObjectStreamClass desc)
throws IOException
writeClassDescriptor in class ObjectOutputStreamIOException
protected final void drain()
throws IOException
drain in class ObjectOutputStreamIOException
public abstract void writeFields()
throws IOException
writeFields in class ObjectOutputStreamIOException
public abstract ObjectOutputStream.PutField putFields()
throws IOException
putFields in class ObjectOutputStreamIOException
public abstract void defaultWriteObject()
throws IOException
defaultWriteObject in class ObjectOutputStreamIOException
|
JBoss Marshalling 1.2.1.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||