public static String getString(ByteBuffer bb) throws IOException { int size = bb.getShort();
public static String getString(DataInputStream dis) throws IOException { int size = dis.readShort();
    public static String getString(ByteBuffer bb) throws IOException {	int size = bb.getShort();	char[] charBuffer = new char[size];	for (int i = 0; i < size; i++) {	    charBuffer[i] = bb.getChar();	}	return new String(charBuffer, 0, size);    }