code: public static final Double getDouble(InputStream is) throws IOException
     {
        double result = Double.longBitsToDouble(getLong(is));
        if (Double.isNaN(result))
        {
           result = 0;
        }
        return Double.valueOf(result);
     }
docs: Retrieve a Double from an input stream.
  
  @param is input stream
  @return Double instance