/** Read a double from a stream. * @param inputStream is the input stream. * @return the double value read from the stream. */ static double readDouble(final InputStream inputStream) throws IOException { return Double.longBitsToDouble(readLong(inputStream)); }