dev@fi.java.net

Byte Encoding Algorithm

From: Alan Hudson <giles_at_yumetech.com>
Date: Sat, 26 Feb 2005 11:15:38 -0800

A built-in byte encoding algorithm might be useful. My encoders are
doing algorithm matching on a per element/attribute basis. So if I have
a string of numbers I test for floats, then ints, then shorts... ie to
best fit it. Sometimes a sequence of numbers will all fit as bytes
instead of shorts. I can/have made this a custom algo, but it might
have applicability across a lot of specs.