Alex Hunsley said:
Well, by loading the class file into a ByteBuffer.
I'm not being funny here, I'm just not sure what you're asking exactly.
In other words, there's no sign that the fact that the files you're
dealing with are "class" files is of any relevance. I.e. a solution which
loads "normal" files into bytebuffer should work just as well with "class"
files. So google for a tutorial on file I/O in Java.
Well, you could try, but why would you want to? What are you trying to
do here? You would end up with a string of garbage.
And different garbage depending on which encoding you use to interpret
the byte stream. Unlike C, bytes and characters are completely different
things in Java.
- Oliver