public static short readShort(DataInputStream dis,boolean isBigEndian) throws IOException {
  if (!isBigEndian) {
    return readLittleEndianShort(dis);
  }
 else {
    return dis.readShort();
  }
}

public static short readShort ( DataInputStream dis , boolean isBigEndian ) throws IOException { if ( ! isBigEndian ) { return readLittleEndianShort ( dis ) ; } else { return dis . readShort ( ) ; } }
read a short from the input stream , byte - swapping as necessary
