File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How does Hashtable attribute of a class get serilized?

 
devasis majhi
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Elements in Hashtable get stored in an Array of Entry. i.e .transient Entry<K, V>[] elementData; elementData is a transient variable. Then how does a Hashtable attribute of a class get serialized ?

EX:-

class A
{
public Hashtable<String,String> ht;
}
 
Steve Luke
Bartender
Pie
Posts: 4181
21
IntelliJ IDE Java Python
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It has writeObject()/readObect() to customize the serialization process.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic