This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Convert Object to byte array and array size should be 40

 
Srikanth Nakka
Greenhorn
Posts: 26
Eclipse IDE Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



i want to convert above class to byte array and array size should be 40

please help me on how to convert class to byte array and size should be 40

 
Henry Wong
author
Marshal
Pie
Posts: 20833
75
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at the java.nio.ByteBuffer class. Just wrap a byte array, and put everything from your class into it.

Henry
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic