Java Utililty Methods ByteBuffer to Short Array

List of utility methods to do ByteBuffer to Short Array

Description

The list of methods to do ByteBuffer to Short Array are organized into topic(s).

Method

StringgetShortString(ByteBuffer in)
Read a short string from the buffer.
int l = in.get() & 0xFF;
byte[] b = new byte[l];
try {
    in.get(b);
    return new String(b, "ISO-8859-1");
} catch (BufferUnderflowException bue) {
    in.position(in.position() - 1);
    throw bue;
...