Code example for DataInput

Methods: readFloat

0
        return d;
    } 
 
    public float readFloat() throws IOException 
    { 
        float f = source.readFloat();
        bytesRead += 4;
        return f;
    } 
 
    public void readFully(byte[] b, int off, int len) throws IOException
    { 
        source.readFully(b, off, len);
        bytesRead += len;
    } 
 
    public void readFully(byte[] b) throws IOException
    { 
        source.readFully(b);
        bytesRead += b.length;
    }