Example usage for java.io DataInput readFloat

List of usage examples for java.io DataInput readFloat

Introduction

In this page you can find the example usage for java.io DataInput readFloat.

Prototype

float readFloat() throws IOException;

Source Link

Document

Reads four input bytes and returns a float value.

Usage

From source file:TVA.Hadoop.MapReduce.Historian.File.StandardPointFile.java

/**
 * Deserializes the point from the underlying data. 
 * /*w  ww  . j a  v  a  2 s .  c  o m*/
 * @param   in      A DataInput object to read the point from.
 * @see java.io.DataInput
 * @see org.apache.hadoop.io.Writable#readFields(java.io.DataInput)
 * 
 */
public void readFields(DataInput in) throws IOException {

    this.iTimeTag = in.readInt();
    this.Flags = in.readShort();
    this.Value = in.readFloat();
    this.iPointID = in.readInt();

}