Code example for DataInput

Methods: readFloat

0
  public long readLong(final String tag) throws IOException {
    return Utils.readVLong(in);
  } 
     
  public float readFloat(final String tag) throws IOException {
    return in.readFloat();
  } 
     
  public double readDouble(final String tag) throws IOException {
    return in.readDouble();
  } 
     
  public String readString(final String tag) throws IOException {
    return Utils.fromBinaryString(in);
  } 
     
  public Buffer readBuffer(final String tag) throws IOException {
    final int len = Utils.readVInt(in);
    final byte[] barr = new byte[len];
    in.readFully(barr);
    return new Buffer(barr);