You aren't signed in     Sign In    Help

HexViewer.java on emacs

HexViewer.java on emacs by Gubatron.

Comments

view profile

ispak  Pro User  says:

Interesting but I think "new File(path)" will never throw an Exception and you can optimize it by wrapping the FileInputStream in a BufferedInputStream and reading chunks of byte[16] instead of doing 16 times fis.read(). :-)
Posted 8 months ago. ( permalink )

view profile

Gubatron  Pro User  says:

lol about the unnecessary try/catch, I wrote it too fast.

Here's an updated version, with chunk reading and which handles the file ending better. Thanks ispak

www.gubatron.com/blog/2009/04/20/how-to-make- a-quick-dirt...
Posted 8 months ago. ( permalink )

Would you like to comment?

Sign up for a free account, or sign in (if you're already a member).

[?]
view photos Uploaded on April 18, 2009
by Gubatron

Gubatron's photostream

14,790
uploads

Additional Information

AttributionNoncommercialShare Alike Some rights reserved Anyone can see this photo

Add to your map