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

BitSet

 
Supraja Kannaiyan
Ranch Hand
Posts: 42
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can somebody explain how the bitset works?

How to convert string(Values like AAAA) to BitSet?
 
Campbell Ritchie
Sheriff
Pie
Posts: 47258
52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What did you learn when you read the BitSet(←link) documentation?
 
Matthew Brown
Bartender
Posts: 4549
8
Java Netbeans IDE Scala
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A BitSet maps integers to boolean values. It does this in a particularly efficient way (you could read Bit array for some of the theory behind it).

As such, I don't know what you mean by "convert a string to a bitmap". There's no natural correspondance between them, so you're going to have to define what the string means, and what the translation should mean.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic