A
aspa
after having worked too long with weakly typed programming languages
it was only recently when i came to realize that the byte stream io
and some other methods using a buffer array for storing data
(InputStream.read(byte[]) et al.) don't really automatically work with
8-bit data because byte is a signed type in Java. so, after this
observation i'm curious: what is the best technique, performance and
otherwise, of converting between 8-bit unsigned and signed bytes in
Java?
best regards,
it was only recently when i came to realize that the byte stream io
and some other methods using a buffer array for storing data
(InputStream.read(byte[]) et al.) don't really automatically work with
8-bit data because byte is a signed type in Java. so, after this
observation i'm curious: what is the best technique, performance and
otherwise, of converting between 8-bit unsigned and signed bytes in
Java?
best regards,