/** * Reads a {@code double} as specified by {@link DataInputStream#readDouble()}, except using * little-endian byte order. * * @return the next eight bytes of the input stream, interpreted as a {@code double} in * little-endian byte order * @throws IOException if an I/O error occurs */ @CanIgnoreReturnValue // to skip some bytes @Override public double readDouble() throws IOException { return Double.longBitsToDouble(readLong()); }
/** * Reads a {@code double} as specified by {@link DataInputStream#readDouble()}, except using * little-endian byte order. * * @return the next eight bytes of the input stream, interpreted as a {@code double} in * little-endian byte order * @throws IOException if an I/O error occurs */ @CanIgnoreReturnValue // to skip some bytes @Override public double readDouble() throws IOException { return Double.longBitsToDouble(readLong()); }
/** * Reads a {@code double} as specified by {@link DataInputStream#readDouble()}, except using * little-endian byte order. * * @return the next eight bytes of the input stream, interpreted as a {@code double} in * little-endian byte order * @throws IOException if an I/O error occurs */ @CanIgnoreReturnValue // to skip some bytes @Override public double readDouble() throws IOException { return Double.longBitsToDouble(readLong()); }
/** * Warning: the result is negative in Java if UInt64 > 0x7fffffffffffffff * @return next UInt64 value as a long * @throws IOException */ public long readUInt64AsLong() throws IOException { return in.readLong(); }
/** * Warning: the result is negative in Java if UInt64 > 0x7fffffffffffffff * @return next UInt64 value as a long * @throws IOException */ public long readUInt64AsLong() throws IOException { return in.readLong(); }
public long readInt64() throws IOException { return in.readLong(); }
/** * Reads a {@code double} as specified by * {@link DataInputStream#readDouble()}, except using little-endian byte * order. * * @return the next eight bytes of the input stream, interpreted as a * {@code double} in little-endian byte order * @throws IOException if an I/O error occurs */ @Override public double readDouble() throws IOException { return Double.longBitsToDouble(readLong()); }
/** * Reads a {@code double} as specified by * {@link DataInputStream#readDouble()}, except using little-endian byte * order. * * @return the next eight bytes of the input stream, interpreted as a * {@code double} in little-endian byte order * @throws IOException if an I/O error occurs */ @Override public double readDouble() throws IOException { return Double.longBitsToDouble(readLong()); }
/** * Reads a {@code double} as specified by * {@link DataInputStream#readDouble()}, except using little-endian byte * order. * * @return the next eight bytes of the input stream, interpreted as a * {@code double} in little-endian byte order * @throws IOException if an I/O error occurs */ @Override public double readDouble() throws IOException { return Double.longBitsToDouble(readLong()); }
/** * Reads a {@code double} as specified by * {@link DataInputStream#readDouble()}, except using little-endian byte * order. * * @return the next eight bytes of the input stream, interpreted as an {@code * int} in little-endian byte order * @throws IOException if an I/O error occurs */ @Override public double readDouble() throws IOException { return Double.longBitsToDouble(readLong()); }
/** * Reads a {@code double} as specified by * {@link DataInputStream#readDouble()}, except using little-endian byte * order. * * @return the next eight bytes of the input stream, interpreted as a * {@code double} in little-endian byte order * @throws IOException if an I/O error occurs */ @Override public double readDouble() throws IOException { return Double.longBitsToDouble(readLong()); }
/** * Reads a {@code double} as specified by * {@link DataInputStream#readDouble()}, except using little-endian byte * order. * * @return the next eight bytes of the input stream, interpreted as a * {@code double} in little-endian byte order * @throws IOException if an I/O error occurs */ @Override public double readDouble() throws IOException { return Double.longBitsToDouble(readLong()); }
/** * Reads a {@code double} as specified by * {@link DataInputStream#readDouble()}, except using little-endian byte * order. * * @return the next eight bytes of the input stream, interpreted as a * {@code double} in little-endian byte order * @throws IOException if an I/O error occurs */ @Override public double readDouble() throws IOException { return Double.longBitsToDouble(readLong()); }
/** * Reads a {@code double} as specified by * {@link DataInputStream#readDouble()}, except using little-endian byte * order. * * @return the next eight bytes of the input stream, interpreted as a * {@code double} in little-endian byte order * @throws IOException if an I/O error occurs */ @Override public double readDouble() throws IOException { return Double.longBitsToDouble(readLong()); }
/** * Reads a {@code double} as specified by * {@link DataInputStream#readDouble()}, except using little-endian byte * order. * * @return the next eight bytes of the input stream, interpreted as a * {@code double} in little-endian byte order * @throws IOException if an I/O error occurs */ @Override public double readDouble() throws IOException { return Double.longBitsToDouble(readLong()); }
@Override public long readLong() { try { return dataInputStream.readLong(); } catch (IOException e) { throw new RuntimeIOException(e); } }
private static long getLong(LittleEndianDataInputStream ledis) throws IOException { short fieldLength = ledis.readShort(); if (fieldLength != 8) { throw new IllegalStateException("Long required but length was " + fieldLength); } return ledis.readLong(); }
@Override public long readLong() { try { return dataInputStream.readLong(); } catch (IOException e) { throw new RuntimeIOException(e); } }
public UnsignedLong readUInt64AsUnsignedLong() throws IOException { return UnsignedLong.fromLongBits(in.readLong()); }
/** * Reads a {@code double} as specified by {@link DataInputStream#readDouble()}, except using * little-endian byte order. * * @return the next eight bytes of the input stream, interpreted as a {@code double} in * little-endian byte order * @throws IOException if an I/O error occurs */ @CanIgnoreReturnValue // to skip some bytes @Override public double readDouble() throws IOException { return Double.longBitsToDouble(readLong()); }