Located in compilation unit of sun.
| Modifier and Type | Field and Description |
|---|---|
| private final Map |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected void | annotateClass(final Class<?> cl)
Overrides java. Subclasses may implement this method to allow class data to be stored in the stream. |
| protected void | annotateProxyClass(final Class<?> cl)
Overrides java. Subclasses may implement this method to store custom data in the stream along with descriptors for dynamic proxy classes. |
| pack-priv Map |
| map | back to summary |
|---|---|
| private final Map<Set<String>, ClassLoader> map | |
| ClassLoaderObjectOutputStream | back to summary |
|---|---|
| pack-priv ClassLoaderObjectOutputStream(OutputStream os) throws IOException | |
| annotateClass | back to summary |
|---|---|
| protected void annotateClass(final Class<?> cl) throws IOException Overrides java. Doc from java. 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.
| |
| annotateProxyClass | back to summary |
|---|---|
| protected void annotateProxyClass(final Class<?> cl) throws IOException Overrides java. Doc from java. 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
The corresponding method in
| |
| getClassLoaderMap | back to summary |
|---|---|
| pack-priv Map | |