• Post Reply Bookmark Topic Watch Topic
  • New Topic

serialization with Java refection  RSS feed

 
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi...
can I serialize the object with Java Reflection?
 
author
Sheriff
Posts: 23306
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. And why would you want to? Isn't it better to use the serialization apis for serialization?

Henry
 
Henry Wong
author
Sheriff
Posts: 23306
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Now... unless you mean to use Java reflection to call the Java serialization apis, then sure. But why would you want to do that?

Henry
 
Sheriff
Posts: 21181
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Technically you can, but you'll be reinventing the wheel. Don't bother, really.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!