public static int readInt(DataInputStream dis,boolean isBigEndian) throws IOException {
  if (!isBigEndian) {
    return readLittleEndianInt(dis);
  }
 else {
    return dis.readInt();
  }
}

public static int readInt ( DataInputStream dis , boolean isBigEndian ) throws IOException { if ( ! isBigEndian ) { return readLittleEndianInt ( dis ) ; } else { return dis . readInt ( ) ; } }
read an integer from the input stream , byte - swapping as necessary
