APIdia Launch Partner
Top Fields Constructors Methods
sun.awt.datatransfer

pack-priv final Class ClassLoaderObjectOutputStream

Located in compilation unit of sun.awt.datatransfer.TransferableProxy.

extends ObjectOutputStream
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final Map<Set<String>, ClassLoader>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected void
annotateClass(final Class<?> cl)

Overrides java.io.ObjectOutputStream.annotateClass.

Subclasses may implement this method to allow class data to be stored in the stream.

protected void
annotateProxyClass(final Class<?> cl)

Overrides java.io.ObjectOutputStream.annotateProxyClass.

Subclasses may implement this method to store custom data in the stream along with descriptors for dynamic proxy classes.

pack-priv Map<Set<String>, ClassLoader>
Inherited from java.io.ObjectOutputStream:
closedefaultWriteObjectdrainenableReplaceObjectflushputFieldsreplaceObjectresetuseProtocolVersionwritewritewritewriteBooleanwriteBytewriteByteswriteCharwriteCharswriteClassDescriptorwriteDoublewriteFieldswriteFloatwriteIntwriteLongwriteObjectwriteObjectOverridewriteShortwriteStreamHeaderwriteUnsharedwriteUTF

Field Detail

mapback to summary
private final Map<Set<String>, ClassLoader> map

Constructor Detail

ClassLoaderObjectOutputStreamback to summary
pack-priv ClassLoaderObjectOutputStream(OutputStream os) throws IOException

Method Detail

annotateClassback to summary
protected void annotateClass(final Class<?> cl) throws IOException

Overrides java.io.ObjectOutputStream.annotateClass.

Doc from java.io.ObjectOutputStream.annotateClass.

Subclasses may implement this method to allow class data to be stored in the stream. By default this method does nothing. The corresponding method in ObjectInputStream is resolveClass. This method is called exactly once for each unique class in the stream. The class name and signature will have already been written to the stream. This method may make free use of the ObjectOutputStream to save any representation of the class it deems suitable (for example, the bytes of the class file). The resolveClass method in the corresponding subclass of ObjectInputStream must read and use any data or objects written by annotateClass.

Exceptions
IOException:
Any exception thrown by the underlying OutputStream.
annotateProxyClassback to summary
protected void annotateProxyClass(final Class<?> cl) throws IOException

Overrides java.io.ObjectOutputStream.annotateProxyClass.

Doc from java.io.ObjectOutputStream.annotateProxyClass.

Subclasses may implement this method to store custom data in the stream along with descriptors for dynamic proxy classes.

This method is called exactly once for each unique proxy class descriptor in the stream. The default implementation of this method in ObjectOutputStream does nothing.

The corresponding method in ObjectInputStream is resolveProxyClass. For a given subclass of ObjectOutputStream that overrides this method, the resolveProxyClass method in the corresponding subclass of ObjectInputStream must read any data or objects written by annotateProxyClass.

Exceptions
IOException:
any exception thrown by the underlying OutputStream
getClassLoaderMapback to summary
pack-priv Map<Set<String>, ClassLoader> getClassLoaderMap()