Bill Roper (billroper) wrote,
Bill Roper
billroper

Coding Away

I'm working on bringing the formula processor up in Java right now. This requires interpreting a byte array as a variety of different kinds of values, while keeping track of whether the byte array contains values in big endian or little endian order. ByteBuffer would seem like a fine choice, but it doesn't automatically expand as I write to it, nor does it retrieve all of the types of values that I'd like to store in the array.

Apparently, someone working on the Apache MINA project had the same warm thoughts about ByteBuffer and rolled their own extension, IoBuffer, which appears to do all of the things that I'd like it to do.

This makes me happy. :)
Tags: computers, java, musings, work
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments