Java Doc for ObjectStreamClass.java in  » Apache-Harmony-Java-SE » java-package » java » io » 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 » java package » java.io 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.io.ObjectStreamClass

ObjectStreamClass
public class ObjectStreamClass implements Serializable(Code)
Instances of ObjectStreamClass are used to describe classes of objects used by serialization. When objects are saved, information about all its superclasses is also saved by the use of descriptors, instances of ObjectStreamClass. These descriptors carry information about the class they represent, such as - The name of the class - SUID of the class - Field names and types
See Also:   ObjectOutputStream
See Also:   ObjectInputStream
See Also:   java.lang.Class


Field Summary
final static  ClassARRAY_OF_FIELDS
    
final static  ClassCLASSCLASS
    
final static  Class[]EMPTY_CONSTRUCTOR_PARAM_TYPES
    
final public static  ObjectStreamField[]NO_FIELDS
    
final static  Class<ObjectStreamClass>OBJECTSTREAMCLASSCLASS
    
final static  Class<String>STRINGCLASS
    
final static  Class[]UNSHARED_PARAM_TYPES
    

Constructor Summary
 ObjectStreamClass()
     Constructs a new instance of this class.

Method Summary
 voidbuildFieldDescriptors(Field[] declaredFields)
    
static  FieldfieldSerialPersistentFields(Class cl)
     Return the java.lang.reflect.Field serialPersistentFields if class cl implements it.
 ObjectStreamField[]fields()
    
static  MethodfindMethod(Class cl, String methodName)
     Return the java.lang.reflect.Method if class cl implements methodName .
static  MethodfindPrivateMethod(Class cl, String methodName, Class[] param)
     Return the java.lang.reflect.Method if class cl implements private methodName .
public  ClassforClass()
    
native static  StringgetConstructorSignature(Constructor c)
     Return a String representing the signature for a Constructor c.
public  ObjectStreamFieldgetField(String name)
     Answers a given field by name.
Parameters:
  name - name of the desired field.
public  ObjectStreamField[]getFields()
    
 bytegetFlags()
    
 ObjectStreamField[]getLoadFields()
    
 MethodgetMethodReadObject()
    
 MethodgetMethodReadObjectNoData()
    
 MethodgetMethodReadResolve()
    
native static  StringgetMethodSignature(Method m)
     Return a String representing the signature for a method m.
 MethodgetMethodWriteObject()
    
 MethodgetMethodWriteReplace()
    
public  StringgetName()
    
public  longgetSerialVersionUID()
    
 ObjectStreamClassgetSuperclass()
     Answers the descriptor (ObjectStreamClass) of the superclass of the class represented by the receiver.
 booleanhasMethodReadObject()
    
 booleanhasMethodReadObjectNoData()
    
 booleanhasMethodReadResolve()
    
 booleanhasMethodWriteObject()
    
 booleanhasMethodWriteReplace()
    
 voidinitPrivateFields(ObjectStreamClass desc)
    
static  booleanisExternalizable(Class cl)
     Return true if instances of class cl are Externalizable, false otherwise.
static  booleanisPrimitiveType(char typecode)
    
static  booleanisSerializable(Class cl)
     Return true if instances of class cl are Serializable, false otherwise.
public static  ObjectStreamClasslookup(Class cl)
     Return the descriptor (ObjectStreamClass) corresponding to the class cl.
static  ObjectStreamClasslookupStreamClass(Class cl)
     Return the descriptor (ObjectStreamClass) corresponding to the class cl.
 voidsetClass(Class c)
    
 voidsetFields(ObjectStreamField[] f)
    
 voidsetFlags(byte b)
    
 voidsetLoadFields(ObjectStreamField[] f)
    
 voidsetName(String newName)
    
 voidsetSerialVersionUID(long l)
    
 voidsetSuperclass(ObjectStreamClass c)
    
public  StringtoString()
     Answers a string containing a concise, human-readable description of the receiver.

Field Detail
ARRAY_OF_FIELDS
final static Class ARRAY_OF_FIELDS(Code)



CLASSCLASS
final static Class CLASSCLASS(Code)



EMPTY_CONSTRUCTOR_PARAM_TYPES
final static Class[] EMPTY_CONSTRUCTOR_PARAM_TYPES(Code)



NO_FIELDS
final public static ObjectStreamField[] NO_FIELDS(Code)
A value that indicates the class has no Serializable fields



OBJECTSTREAMCLASSCLASS
final static Class<ObjectStreamClass> OBJECTSTREAMCLASSCLASS(Code)



STRINGCLASS
final static Class<String> STRINGCLASS(Code)



UNSHARED_PARAM_TYPES
final static Class[] UNSHARED_PARAM_TYPES(Code)




Constructor Detail
ObjectStreamClass
ObjectStreamClass()(Code)
Constructs a new instance of this class.




Method Detail
buildFieldDescriptors
void buildFieldDescriptors(Field[] declaredFields)(Code)
Builds the collection of field descriptors for the receiver
Parameters:
  declaredFields - collection of java.lang.reflect.Field for which to computefield descriptors



fieldSerialPersistentFields
static Field fieldSerialPersistentFields(Class cl)(Code)
Return the java.lang.reflect.Field serialPersistentFields if class cl implements it. Return null otherwise.
Parameters:
  cl - a java.lang.Class which to test java.lang.reflect.Field if the class hasserialPersistentFields null if the class does nothave serialPersistentFields



fields
ObjectStreamField[] fields()(Code)
Answers the collection of field descriptors for the fields of the corresponding class the receiver's collection of declared fields for the class itrepresents



findMethod
static Method findMethod(Class cl, String methodName)(Code)
Return the java.lang.reflect.Method if class cl implements methodName . Return null otherwise.
Parameters:
  cl - a java.lang.Class which to test java.lang.reflect.Method if the class implementswriteReplace null if the class does not implementwriteReplace



findPrivateMethod
static Method findPrivateMethod(Class cl, String methodName, Class[] param)(Code)
Return the java.lang.reflect.Method if class cl implements private methodName . Return null otherwise.
Parameters:
  cl - a java.lang.Class which to test java.lang.reflect.Method if the class implementswriteReplace null if the class does not implementwriteReplace



forClass
public Class forClass()(Code)
Return the class (java.lang.Class) that the receiver represents null if there is no corresponding class for thereceiver Class The loaded class corresponding tothe receiver



getConstructorSignature
native static String getConstructorSignature(Constructor c)(Code)
Return a String representing the signature for a Constructor c.
Parameters:
  c - a java.lang.reflect.Constructor for which to compute thesignature the constructor's signature



getField
public ObjectStreamField getField(String name)(Code)
Answers a given field by name.
Parameters:
  name - name of the desired field. a given field by name.



getFields
public ObjectStreamField[] getFields()(Code)
Answers the collection of field descriptors for the fields of the corresponding class the receiver's collection of declared fields for the class itrepresents



getFlags
byte getFlags()(Code)
Answers the flags for this descriptor, where possible combined values are ObjectStreamConstants.SC_WRITE_METHOD ObjectStreamConstants.SC_SERIALIZABLE ObjectStreamConstants.SC_EXTERNALIZABLE byte the receiver's flags for the class it represents



getLoadFields
ObjectStreamField[] getLoadFields()(Code)
Answers the collection of field descriptors for the input fields of the corresponding class the receiver's collection of input fields for the class itrepresents



getMethodReadObject
Method getMethodReadObject()(Code)



getMethodReadObjectNoData
Method getMethodReadObjectNoData()(Code)



getMethodReadResolve
Method getMethodReadResolve()(Code)



getMethodSignature
native static String getMethodSignature(Method m)(Code)
Return a String representing the signature for a method m.
Parameters:
  m - a java.lang.reflect.Method for which to compute the signature the method's signature



getMethodWriteObject
Method getMethodWriteObject()(Code)



getMethodWriteReplace
Method getMethodWriteReplace()(Code)



getName
public String getName()(Code)
Answers the name of the class represented by the receiver fully qualified name of the class the receiver represents



getSerialVersionUID
public long getSerialVersionUID()(Code)
Answers the Serial Version User ID of the class represented by the receiver SUID for the class represented by the receiver



getSuperclass
ObjectStreamClass getSuperclass()(Code)
Answers the descriptor (ObjectStreamClass) of the superclass of the class represented by the receiver. an ObjectStreamClass representing the superclass of the classrepresented by the receiver.



hasMethodReadObject
boolean hasMethodReadObject()(Code)



hasMethodReadObjectNoData
boolean hasMethodReadObjectNoData()(Code)



hasMethodReadResolve
boolean hasMethodReadResolve()(Code)



hasMethodWriteObject
boolean hasMethodWriteObject()(Code)



hasMethodWriteReplace
boolean hasMethodWriteReplace()(Code)



initPrivateFields
void initPrivateFields(ObjectStreamClass desc)(Code)



isExternalizable
static boolean isExternalizable(Class cl)(Code)
Return true if instances of class cl are Externalizable, false otherwise.
Parameters:
  cl - a java.lang.Class which to test true if instances of the class are Externalizablefalse if instances of the class are notExternalizable
See Also:   Object.hashCode



isPrimitiveType
static boolean isPrimitiveType(char typecode)(Code)
Return true if the type code typecode describes a primitive type
Parameters:
  typecode - a char describing the typecode true if the typecode represents a primitive type false if the typecode represents an Object type (including arrays)
See Also:   Object.hashCode



isSerializable
static boolean isSerializable(Class cl)(Code)
Return true if instances of class cl are Serializable, false otherwise.
Parameters:
  cl - a java.lang.Class which to test true if instances of the class are Serializablefalse if instances of the class are notSerializable
See Also:   Object.hashCode



lookup
public static ObjectStreamClass lookup(Class cl)(Code)
Return the descriptor (ObjectStreamClass) corresponding to the class cl. If the class is not Serializable or Externalizable, null is returned.
Parameters:
  cl - a java.langClass for which to obtain the correspondingdescriptor null if instances of the class clare not Serializable or ExternalizableObjectStreamClass The corresponding descriptor ifthe class cl is Serializable or Externalizable



lookupStreamClass
static ObjectStreamClass lookupStreamClass(Class cl)(Code)
Return the descriptor (ObjectStreamClass) corresponding to the class cl. Returns an ObjectStreamClass even if instances of the class cannot be serialized
Parameters:
  cl - a java.langClass for which to obtain the correspondingdescriptor the corresponding descriptor



setClass
void setClass(Class c)(Code)
Set the class (java.lang.Class) that the receiver represents
Parameters:
  c - aClass, the new class that the receiver describes



setFields
void setFields(ObjectStreamField[] f)(Code)
Set the collection of field descriptors for the fields of the corresponding class
Parameters:
  f - ObjectStreamField[], the receiver's new collection of declaredfields for the class it represents



setFlags
void setFlags(byte b)(Code)
Set the flags for this descriptor, where possible combined values are ObjectStreamConstants.SC_WRITE_METHOD ObjectStreamConstants.SC_SERIALIZABLE ObjectStreamConstants.SC_EXTERNALIZABLE
Parameters:
  b - byte, the receiver's new flags for the class it represents



setLoadFields
void setLoadFields(ObjectStreamField[] f)(Code)
Set the collection of field descriptors for the input fields of the corresponding class
Parameters:
  f - ObjectStreamField[], the receiver's new collection of inputfields for the class it represents



setName
void setName(String newName)(Code)
Set the name of the class represented by the receiver
Parameters:
  newName - a String, the new fully qualified name of the class thereceiver represents



setSerialVersionUID
void setSerialVersionUID(long l)(Code)
Set the Serial Version User ID of the class represented by the receiver
Parameters:
  l - a long, the new SUID for the class represented by the receiver



setSuperclass
void setSuperclass(ObjectStreamClass c)(Code)
Set the descriptor for the superclass of the class described by the receiver
Parameters:
  c - an ObjectStreamClass, the new ObjectStreamClass for thesuperclass of the class represented by the receiver



toString
public String toString()(Code)
Answers a string containing a concise, human-readable description of the receiver. a printable representation for the receiver.



Methods inherited from java.lang.Object
protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object object)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final public Class<? extends Object> getClass()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
final public void notify()(Code)(Java Doc)
final public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final public void wait(long millis, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait(long millis) 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.