[java] Reading binary data

Started by
5 comments, last by shmoove 17 years, 7 months ago
How do I read binary data in Java? cheers !!
Advertisement
ByteArrayInputStream...?

And if you're reading something sent by another language, beware the endianness of the bytes you're receiving.

Son Of Cain
a.k.a javabeats at yahoo.ca
I would like to create an application that reads a 3ds file...
First you should read up on the file format see how it's made up.
It's not a bug... it's a feature!
actually, i have started by doing that...
In that case you need to use the ByteInputStream and read bytes form the file and do whatever you ened to do with them.
It's not a bug... it's a feature!
If the data is big-endian a DataInputStream might come in handier.

shmoove

This topic is closed to new replies.

Advertisement