File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes BeanInfo dependency with XMLEncoder Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "BeanInfo dependency with XMLEncoder" Watch "BeanInfo dependency with XMLEncoder" New topic
Author

BeanInfo dependency with XMLEncoder

sreenath reddy
Ranch Hand

Joined: Sep 21, 2003
Posts: 415
Hi

In my application i am using XMLEncoder to seralize the java beans and at the same time each bean has a beaninfo in the classpath . Suppose if my javabean name is abc , my beaninfo class is abcBeanInfo.

But the problem is that as XMLEncoder uses introspector , it gets my beanInfo and writes using this ...because of which i am not able to write few properties of the java bean ...

I want to tell the encoder not to use my BeanInfos.... If there is no BeanInfo actually it creates one on its own , i want to enforce this behaviour ..How to do this ??
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: BeanInfo dependency with XMLEncoder
 
Similar Threads
"No getter method error for property" caused by java.beans.Introspector feature/bug
XMlEncoder writeObject throwing a StackOverflow
java.beans.XMLEncoder
BeanInfo dependency with XMLEncoder
Java bean Persistence not working