| Modifier and Type | Field and Description |
|---|---|
| private final Map | doneCallbacks
callbacks to make when done() called: maps Object to Runnable |
| protected static Map | permittedSunClasses
table to hold sun classes to which access is explicitly permitted |
| private boolean | skipDefaultResolveClass
if true, don't try superclass first in resolveClass() |
| private boolean | useCodebaseOnly
if true, load classes (if not available locally) only from the URL specified by the "java.rmi.server.codebase" property. |
| private static final boolean | useCodebaseOnlyProperty
Value of "java.rmi.server.useCodebaseOnly" property, as cached at class initialization time. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private Class | checkSunClass(String className, AccessControlException e)
References Deprecated
AccessControlException is deprecated or references (maybe indirectly) at least one deprecated element.
Fix for 4179055: Need to assist resolving sun stubs; resolve class locally if it is a "permitted" sun class |
| public void | close()
Overrides java. Implements java. Closes this stream, implicitly invoking done() first. |
| public void | done()
Indicates that the user of this MarshalInputStream is done reading objects from it, so all callbacks registered with the setDoneCallback method should now be (synchronously) executed. |
| public Runnable | getDoneCallback(Object key)
Returns a callback previously registered via the setDoneCallback method with given key, or null if no callback has yet been registered with that key. |
| private static ClassLoader | latestUserDefinedLoader()
Hides java. Returns the first non-null and non-platform class loader (not counting class loaders of generated reflection implementation classes) up the execution stack, or the platform class loader if only code from the bootstrap and platform class loader is on the stack. |
| protected Object | |
| protected Class | resolveClass(ObjectStreamClass classDesc)
Overrides java. resolveClass is extended to acquire (if present) the location from which to load the specified class. |
| protected Class | resolveProxyClass(String[] interfaces)
Overrides java. resolveProxyClass is extended to acquire (if present) the location to determine the class loader to define the proxy class in. |
| public void | setDoneCallback(Object key, Runnable callback)
Registers a callback to make when this stream's done() method is invoked, along with a key for retrieving the same callback instance subsequently from the getDoneCallback method. |
| pack-priv void | skipDefaultResolveClass()
Set a flag to indicate that the superclass's default resolveClass() implementation should not be invoked by our resolveClass(). |
| pack-priv void | useCodebaseOnly()
Disable code downloading except from the URL specified by the "java.rmi.server.codebase" property. |
| doneCallbacks | back to summary |
|---|---|
| private final Map<Object, Runnable> doneCallbacks callbacks to make when done() called: maps Object to Runnable | |
| permittedSunClasses | back to summary |
|---|---|
| protected static Map<String, Class<?>> permittedSunClasses table to hold sun classes to which access is explicitly permitted | |
| skipDefaultResolveClass | back to summary |
|---|---|
| private boolean skipDefaultResolveClass if true, don't try superclass first in resolveClass() | |
| useCodebaseOnly | back to summary |
|---|---|
| private boolean useCodebaseOnly if true, load classes (if not available locally) only from the URL specified by the "java.rmi.server.codebase" property. | |
| useCodebaseOnlyProperty | back to summary |
|---|---|
| private static final boolean useCodebaseOnlyProperty Value of "java.rmi.server.useCodebaseOnly" property, as cached at class initialization time. The default value is true. That is, the value is true if the property is absent or is not equal to "false". The value is only false when the property is present and is equal to "false". | |
| MarshalInputStream | back to summary |
|---|---|
| public MarshalInputStream(InputStream in) throws IOException, StreamCorruptedException Create a new MarshalInputStream object. | |
| checkSunClass | back to summary |
|---|---|
| private Class References Deprecated
See corresponding docs for further information. Fix for 4179055: Need to assist resolving sun stubs; resolve class locally if it is a "permitted" sun class
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Closes this stream, implicitly invoking done() first.
| |
| done | back to summary |
|---|---|
| public void done() Indicates that the user of this MarshalInputStream is done reading objects from it, so all callbacks registered with the setDoneCallback method should now be (synchronously) executed. When this method returns, there are no more callbacks registered. This method is implicitly invoked by close() before it delegates to the superclass's close method. | |
| getDoneCallback | back to summary |
|---|---|
| public Runnable getDoneCallback(Object key) Returns a callback previously registered via the setDoneCallback method with given key, or null if no callback has yet been registered with that key. | |
| latestUserDefinedLoader | back to summary |
|---|---|
| private static ClassLoader latestUserDefinedLoader() Hides java. Doc from java. Returns the first non-null and non-platform class loader (not counting class loaders of generated reflection implementation classes) up the execution stack, or the platform class loader if only code from the bootstrap and platform class loader is on the stack. | |
| readLocation | back to summary |
|---|---|
| protected Object readLocation() throws IOException, ClassNotFoundException Return the location for the class in the stream. This method can be overridden by subclasses that store this annotation somewhere else than as the next object in the stream, as is done by this class. | |
| resolveClass | back to summary |
|---|---|
| protected Class Overrides java. resolveClass is extended to acquire (if present) the location from which to load the specified class. It will find, load, and return the class.
| |
| resolveProxyClass | back to summary |
|---|---|
| protected Class Overrides java. resolveProxyClass is extended to acquire (if present) the location to determine the class loader to define the proxy class in.
| |
| setDoneCallback | back to summary |
|---|---|
| public void setDoneCallback(Object key, Runnable callback) Registers a callback to make when this stream's done() method is invoked, along with a key for retrieving the same callback instance subsequently from the getDoneCallback method. | |
| skipDefaultResolveClass | back to summary |
|---|---|
| pack-priv void skipDefaultResolveClass() Set a flag to indicate that the superclass's default resolveClass() implementation should not be invoked by our resolveClass(). | |
| useCodebaseOnly | back to summary |
|---|---|
| pack-priv void useCodebaseOnly() Disable code downloading except from the URL specified by the "java.rmi.server.codebase" property. | |