|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
java.io.ObjectOutputStream
sun.rmi.server.MarshalOutputStream
com.sun.grid.jgrid.proxy.ProxyOutputStream
This class allows the annotation for classes being written to the stream to be explicitly set.
Nested Class Summary |
Nested classes inherited from class java.io.ObjectOutputStream |
java.io.ObjectOutputStream.PutField |
Field Summary | |
private java.lang.String |
annotation
The annotation to be used when writing objects to the stream. |
Fields inherited from class java.io.ObjectOutputStream |
|
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 |
Constructor Summary | |
ProxyOutputStream(java.io.OutputStream out)
Creates a new instance of ProxyOutputStream |
Method Summary | |
protected void |
annotateClass(java.lang.Class cl)
This method overrides its parent's method to write the annotation object specified regardless of what class is being written. |
void |
setAnnotation(java.lang.String annotation)
This method sets the annotation to be used. |
Methods inherited from class sun.rmi.server.MarshalOutputStream |
annotateProxyClass, replaceObject, writeLocation |
Methods inherited from class java.io.ObjectOutputStream |
close, defaultWriteObject, drain, enableReplaceObject, flush, putFields, reset, useProtocolVersion, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeClassDescriptor, writeDouble, writeFields, writeFloat, writeInt, writeLong, writeObject, writeObjectOverride, writeShort, writeStreamHeader, writeUnshared, writeUTF |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.lang.String annotation
Constructor Detail |
public ProxyOutputStream(java.io.OutputStream out) throws java.io.IOException, java.io.StreamCorruptedException
out
- the OutputStream to wrap
java.io.IOException
- if an error occurs while writing to the stream
java.io.StreamCorruptedException
- if the object stream is invalidMethod Detail |
public void setAnnotation(java.lang.String annotation)
annotation
- The annotation to useprotected void annotateClass(java.lang.Class cl) throws java.io.IOException
cl
- the class to annotate
java.io.IOException
- if an error occurs while writing to the stream
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |