public static float readFloat(DataInputStream dis,boolean isBigEndian) throws IOException {
  float val;
  if (!isBigEndian) {
    val=readLittleEndianFloat(dis);
  }
 else {
    val=dis.readFloat();
  }
  return val;
}

public static float readFloat ( DataInputStream dis , boolean isBigEndian ) throws IOException { float val ; if ( ! isBigEndian ) { val = readLittleEndianFloat ( dis ) ; } else { val = dis . readFloat ( ) ; } return val ; }
read a float from the input stream , byte - swapping as necessary
