protected double readDouble(byte[] content) throws IOException { double value = ByteUtils.convertDoubleFromBytes(content, index); index += 8; return value; }
public static double convertDoubleFromBytes(byte[] bytes) { return convertDoubleFromBytes(bytes, 0); }
/** * Read in a double from an InputStream * * @param inputStream * The InputStream used to read the double * @return A double, which is the next 8 bytes converted from the InputStream * @throws IOException * Thrown if there is a problem reading from the InputStream */ public static double readDouble(InputStream inputStream) throws IOException { byte[] byteArray = new byte[8]; // Read in the next 8 bytes inputStream.read(byteArray); double number = convertDoubleFromBytes(byteArray); return number; }
protected double readDouble(byte[] content) throws IOException { double value = ByteUtils.convertDoubleFromBytes(content, index); index += 8; return value; }
protected double readDouble(byte[] content) throws IOException { double value = ByteUtils.convertDoubleFromBytes(content, index); index += 8; return value; }
public static double convertDoubleFromBytes(byte[] bytes) { return convertDoubleFromBytes(bytes, 0); }
public static double convertDoubleFromBytes(byte[] bytes) { return convertDoubleFromBytes(bytes, 0); }
/** * Read in a double from an InputStream * * @param inputStream * The InputStream used to read the double * @return A double, which is the next 8 bytes converted from the InputStream * @throws IOException * Thrown if there is a problem reading from the InputStream */ public static double readDouble(InputStream inputStream) throws IOException { byte[] byteArray = new byte[8]; // Read in the next 8 bytes inputStream.read(byteArray); double number = convertDoubleFromBytes(byteArray); return number; }
/** * Read in a double from an InputStream * * @param inputStream * The InputStream used to read the double * @return A double, which is the next 8 bytes converted from the InputStream * @throws IOException * Thrown if there is a problem reading from the InputStream */ public static double readDouble(InputStream inputStream) throws IOException { byte[] byteArray = new byte[8]; // Read in the next 8 bytes inputStream.read(byteArray); double number = convertDoubleFromBytes(byteArray); return number; }