| java.lang.Object java.io.InputStream java.io.ObjectInputStream org.apache.harmony.rmi.transport.RMIObjectInputStream
All known Subclasses: org.apache.harmony.rmi.MarshalledObjectInputStream,
RMIObjectInputStream | public class RMIObjectInputStream extends ObjectInputStream (Code) | | The RMIObjectInputStream is a subclass of ObjectInputStream performing
deserialization for RMI calls.
author: Mikhail A. Markov version: $Revision: 1.1.2.2 $ |
RMIObjectInputStream | public RMIObjectInputStream(InputStream in) throws IOException(Code) | | Constructs a RMIObjectInputStream that reads from the specified
InputStream. This stream will be a non-RemoteCall stream (i.e.
isRemoteCallStream() method will return false).
Parameters: in - underlying InputStream throws: IOException - if an I/O error occurred during stream initialization |
RMIObjectInputStream | public RMIObjectInputStream(InputStream in, boolean isRCallStream) throws IOException(Code) | | Constructs a RMIObjectInputStream that reads from the specified
InputStream.
Parameters: in - underlying InputStream Parameters: isRCallStream - true if this stream was created for handlinga RemoteCall and false otherwise throws: IOException - if an I/O error occurred during stream initialization |
isDGCAckNeeded | public boolean isDGCAckNeeded()(Code) | | Returns the value of DGC ack call field.
the value of DGC ack call field |
isRemoteCallStream | public boolean isRemoteCallStream()(Code) | | Returns true if this stream was created for handling a RemoteCall and
false otherwise.
true if this stream was created for handling a RemoteCall andfalse otherwise |
needDGCAck | public void needDGCAck(boolean need)(Code) | | Sets the flag of DGC ack call to the given value.
Parameters: need - true if we need DGC ack call and false otherwise |
readRMIObject | public synchronized Object readRMIObject(Class cl) throws IOException, ClassNotFoundException(Code) | | Reads object (possibly primitive value) from the stream.
Parameters: cl - expected class to be read from the stream Parameters: loader - ClassLoader for classes resolving (ClassLoader whichwill be specified in the calls to RMIClassLoader.) object read from the stream throws: IOException - if an I/O error occurred during deserialization throws: ClassNotFoundException - if class of a serialized objectcould not be found |
resolveClass | protected Class resolveClass(ObjectStreamClass streamCl) throws IOException, ClassNotFoundException(Code) | | Resolves annotated class. To resolves class method calls
Class.forName(classname, false, classloader) where classloader is
the first non-null class loader up in the execution stack or null
if no non-null class loaders were found in the stack.
Parameters: streamCl - annotated class throws: IOException - if an I/O exception occurred throws: ClassNotFoundException - if class of a serialized objectcould not be found |
setLocStream | protected void setLocStream(ObjectInputStream in)(Code) | | Sets annotation's stream to the value specified.
Subclasses should call this method if they want to read annotations from
the stream other then one for objects themselves.
Parameters: in - stream for annotations |
Methods inherited from java.io.ObjectInputStream | public int available() throws IOException(Code)(Java Doc) public void close() throws IOException(Code)(Java Doc) public void defaultReadObject() throws IOException, ClassNotFoundException(Code)(Java Doc) protected boolean enableResolveObject(boolean enable) throws SecurityException(Code)(Java Doc) public int read() throws IOException(Code)(Java Doc) public int read(byte[] buf, int off, int len) throws IOException(Code)(Java Doc) public boolean readBoolean() throws IOException(Code)(Java Doc) public byte readByte() throws IOException(Code)(Java Doc) public char readChar() throws IOException(Code)(Java Doc) protected ObjectStreamClass readClassDescriptor() throws IOException, ClassNotFoundException(Code)(Java Doc) public double readDouble() throws IOException(Code)(Java Doc) public ObjectInputStream.GetField readFields() throws IOException, ClassNotFoundException(Code)(Java Doc) public float readFloat() throws IOException(Code)(Java Doc) public void readFully(byte[] buf) throws IOException(Code)(Java Doc) public void readFully(byte[] buf, int off, int len) throws IOException(Code)(Java Doc) public int readInt() throws IOException(Code)(Java Doc) public String readLine() throws IOException(Code)(Java Doc) public long readLong() throws IOException(Code)(Java Doc) final public Object readObject() throws IOException, ClassNotFoundException(Code)(Java Doc) protected Object readObjectOverride() throws IOException, ClassNotFoundException(Code)(Java Doc) public short readShort() throws IOException(Code)(Java Doc) protected void readStreamHeader() throws IOException, StreamCorruptedException(Code)(Java Doc) public String readUTF() throws IOException(Code)(Java Doc) public Object readUnshared() throws IOException, ClassNotFoundException(Code)(Java Doc) public int readUnsignedByte() throws IOException(Code)(Java Doc) public int readUnsignedShort() throws IOException(Code)(Java Doc) public void registerValidation(ObjectInputValidation obj, int prio) throws NotActiveException, InvalidObjectException(Code)(Java Doc) protected Class> resolveClass(ObjectStreamClass desc) throws IOException, ClassNotFoundException(Code)(Java Doc) protected Object resolveObject(Object obj) throws IOException(Code)(Java Doc) protected Class> resolveProxyClass(String[] interfaces) throws IOException, ClassNotFoundException(Code)(Java Doc) public int skipBytes(int len) throws IOException(Code)(Java Doc)
|
|
|