java.lang.Object | |||
↳ | java.io.InputStream | ||
↳ | java.io.ObjectInputStream | ||
↳ | sun.rmi.server.MarshalInputStream |
MarshalInputStream is an extension of ObjectInputStream. When resolving a class, it reads an object from the stream written by a corresponding MarshalOutputStream. If the class to be resolved is not available locally, from the first class loader on the execution stack, or from the context class loader of the current thread, it will attempt to load the class from the location annotated by the sending MarshalOutputStream. This location object must be a string representing a path of URLs. A new MarshalInputStream should be created to deserialize remote objects or graphs containing remote objects. Objects are created from the stream using the ObjectInputStream.readObject method.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
permittedSunClasses | table to hold sun classes to which access is explicitly permitted |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new MarshalInputStream object.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Closes this stream, implicitly invoking done() first.
| |||||||||||
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.
| |||||||||||
Returns a callback previously registered via the setDoneCallback
method with given key, or null if no callback has yet been registered
with that key.
| |||||||||||
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.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the location for the class in the stream.
| |||||||||||
resolveClass is extended to acquire (if present) the location
from which to load the specified class.
| |||||||||||
resolveProxyClass is extended to acquire (if present) the location
to determine the class loader to define the proxy class in.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
table to hold sun classes to which access is explicitly permitted
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.
Returns a callback previously registered via the setDoneCallback method with given key, or null if no callback has yet been registered with that key.
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.
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 is extended to acquire (if present) the location from which to load the specified class. It will find, load, and return the class.
classDesc | an instance of class ObjectStreamClass |
---|
Class
object corresponding to desc
resolveProxyClass is extended to acquire (if present) the location to determine the class loader to define the proxy class in.
interfaces | the list of interface names that were deserialized in the proxy class descriptor |
---|