public int readShortLittleEndian() {
    int position = myPosition;
    if (position >= myCount - 1) {
      return -1;
    }
    byte ch1 = myBuffer[position];
    byte ch2 = myBuffer[position+1];
    myPosition += 2;
    return (ch1 & 0xff) | ((ch2 << 8) & 0xff00);
  }
public int readShortLittleEndian()