Java Doc for RMIObjectInputStream.java in  » Apache-Harmony-Java-SE » org-package » org » apache » harmony » rmi » transport » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Apache Harmony Java SE » org package » org.apache.harmony.rmi.transport 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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 $



Constructor Summary
public  RMIObjectInputStream(InputStream in)
     Constructs a RMIObjectInputStream that reads from the specified InputStream.
public  RMIObjectInputStream(InputStream in, boolean isRCallStream)
     Constructs a RMIObjectInputStream that reads from the specified InputStream.

Method Summary
public  booleanisDGCAckNeeded()
     Returns the value of DGC ack call field.
public  booleanisRemoteCallStream()
     Returns true if this stream was created for handling a RemoteCall and false otherwise.
public  voidneedDGCAck(boolean need)
     Sets the flag of DGC ack call to the given value.
public synchronized  ObjectreadRMIObject(Class cl)
     Reads object (possibly primitive value) from the stream.
protected  ClassresolveClass(ObjectStreamClass streamCl)
     Resolves annotated class.
protected  ClassresolveProxyClass(String[] interf)
     Resolves annotated proxy class.
protected  voidsetLocStream(ObjectInputStream in)
     Sets annotation's stream to the value specified.


Constructor Detail
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




Method Detail
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



resolveProxyClass
protected Class resolveProxyClass(String[] interf) throws IOException, ClassNotFoundException(Code)
Resolves annotated proxy class.
Parameters:
  interf - array of interfaces which proxy class should implement
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)

Methods inherited from java.io.InputStream
public int available() throws IOException(Code)(Java Doc)
public void close() throws IOException(Code)(Java Doc)
public synchronized void mark(int readlimit)(Code)(Java Doc)
public boolean markSupported()(Code)(Java Doc)
abstract public int read() throws IOException(Code)(Java Doc)
public int read(byte b) throws IOException(Code)(Java Doc)
public int read(byte b, int off, int len) throws IOException(Code)(Java Doc)
public synchronized void reset() throws IOException(Code)(Java Doc)
public long skip(long n) throws IOException(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.