Java Doc for SerializerHelper.java in  » Report » pentaho-report » org » jfree » report » util » 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 » Report » pentaho report » org.jfree.report.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jfree.report.util.SerializerHelper

SerializerHelper
public class SerializerHelper (Code)
The SerializeHelper is used to make implementing custom serialization handlers easier. Handlers for certain object types need to be added to this helper before this implementation is usable.
author:
   Thomas Morgner



Constructor Summary
protected  SerializerHelper()
     Creates a new SerializerHelper.

Method Summary
protected  ClassComparatorgetComparator()
     Returns the class comparator instance used to find correct super classes.
public static synchronized  SerializerHelpergetInstance()
     Returns or creates a new SerializerHelper.
protected  HashMapgetMethods()
     Returns the collection of all registered serialize methods.
protected  SerializeMethodgetSerializer(Class c)
     Looks up the SerializeMethod for the given class or null if there is no SerializeMethod for the given class.
Parameters:
  c - the class for which we want to lookup a serialize method.
protected  SerializeMethodgetSuperClassObjectDescription(Class d, SerializeMethod knownSuperClass)
     Looks up the SerializeMethod for the given class or null if there is no SerializeMethod for the given class.
public  ObjectreadObject(ObjectInputStream in)
     Reads the object from the object input stream.
public  voidregisterMethod(SerializeMethod method)
     Registers a new SerializeMethod with this SerializerHelper.
protected static  voidsetInstance(SerializerHelper helper)
     This method can be used to replace the singleton instance of this helper.
public  voidunregisterMethod(SerializeMethod method)
     Deregisters a new SerializeMethod with this SerializerHelper.
public  voidwriteObject(Object o, ObjectOutputStream out)
     Writes a serializable object description to the given object output stream.


Constructor Detail
SerializerHelper
protected SerializerHelper()(Code)
Creates a new SerializerHelper.




Method Detail
getComparator
protected ClassComparator getComparator()(Code)
Returns the class comparator instance used to find correct super classes. the class comparator.



getInstance
public static synchronized SerializerHelper getInstance()(Code)
Returns or creates a new SerializerHelper. When a new instance is created by this method, all known SerializeMethods are registered. the SerializerHelper singleton instance.



getMethods
protected HashMap getMethods()(Code)
Returns the collection of all registered serialize methods. a collection of the registered serialize methods.



getSerializer
protected SerializeMethod getSerializer(Class c)(Code)
Looks up the SerializeMethod for the given class or null if there is no SerializeMethod for the given class.
Parameters:
  c - the class for which we want to lookup a serialize method. the method or null, if there is no registered method for the class.



getSuperClassObjectDescription
protected SerializeMethod getSuperClassObjectDescription(Class d, SerializeMethod knownSuperClass)(Code)
Looks up the SerializeMethod for the given class or null if there is no SerializeMethod for the given class. This method searches all superclasses.
Parameters:
  d - the class for which we want to lookup a serialize method.
Parameters:
  knownSuperClass - the known super class, if any or null. the method or null, if there is no registered method for the class.



readObject
public Object readObject(ObjectInputStream in) throws IOException, ClassNotFoundException(Code)
Reads the object from the object input stream. This object selects the best serializer to read the object.

Make sure, that you use the same configuration (library and class versions, registered methods in the SerializerHelper) for reading as you used for writing.
Parameters:
  in - the object input stream from where to read the serialized data. the generated object.
throws:
  IOException - if reading the stream failed.
throws:
  ClassNotFoundException - if serialized object class cannot be found.




registerMethod
public void registerMethod(SerializeMethod method)(Code)
Registers a new SerializeMethod with this SerializerHelper.
Parameters:
  method - the method that should be registered.



setInstance
protected static void setInstance(SerializerHelper helper)(Code)
This method can be used to replace the singleton instance of this helper.
Parameters:
  helper - the new instance of the serialize helper.



unregisterMethod
public void unregisterMethod(SerializeMethod method)(Code)
Deregisters a new SerializeMethod with this SerializerHelper.
Parameters:
  method - the method that should be deregistered.



writeObject
public void writeObject(Object o, ObjectOutputStream out) throws IOException(Code)
Writes a serializable object description to the given object output stream. This method selects the best serialize helper method for the given object.
Parameters:
  o - the to be serialized object.
Parameters:
  out - the outputstream that should receive the object.
throws:
  IOException - if an I/O error occured.



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.