/** * Reads a {@code short} as specified by {@link DataInputStream#readShort()}, except using * little-endian byte order. * * @return the next two bytes of the input stream, interpreted as a {@code short} in little-endian * byte order. * @throws IOException if an I/O error occurs. */ @CanIgnoreReturnValue // to skip some bytes @Override public short readShort() throws IOException { return (short) readUnsignedShort(); }
/** * Reads a char as specified by {@link DataInputStream#readChar()}, except using little-endian * byte order. * * @return the next two bytes of the input stream, interpreted as a {@code char} in little-endian * byte order * @throws IOException if an I/O error occurs */ @CanIgnoreReturnValue // to skip some bytes @Override public char readChar() throws IOException { return (char) readUnsignedShort(); }
/** * Reads a char as specified by {@link DataInputStream#readChar()}, except using little-endian * byte order. * * @return the next two bytes of the input stream, interpreted as a {@code char} in little-endian * byte order * @throws IOException if an I/O error occurs */ @CanIgnoreReturnValue // to skip some bytes @Override public char readChar() throws IOException { return (char) readUnsignedShort(); }
/** * Reads a {@code short} as specified by {@link DataInputStream#readShort()}, except using * little-endian byte order. * * @return the next two bytes of the input stream, interpreted as a {@code short} in little-endian * byte order. * @throws IOException if an I/O error occurs. */ @CanIgnoreReturnValue // to skip some bytes @Override public short readShort() throws IOException { return (short) readUnsignedShort(); }
/** * Reads a char as specified by {@link DataInputStream#readChar()}, except using little-endian * byte order. * * @return the next two bytes of the input stream, interpreted as a {@code char} in little-endian * byte order * @throws IOException if an I/O error occurs */ @CanIgnoreReturnValue // to skip some bytes @Override public char readChar() throws IOException { return (char) readUnsignedShort(); }
/** * Reads a {@code short} as specified by {@link DataInputStream#readShort()}, except using * little-endian byte order. * * @return the next two bytes of the input stream, interpreted as a {@code short} in little-endian * byte order. * @throws IOException if an I/O error occurs. */ @CanIgnoreReturnValue // to skip some bytes @Override public short readShort() throws IOException { return (short) readUnsignedShort(); }
/** * Reads a char as specified by {@link DataInputStream#readChar()}, except * using little-endian byte order. * * @return the next two bytes of the input stream, interpreted as an {@code * char} in little-endian byte order * @throws IOException if an I/O error occurs */ @Override public char readChar() throws IOException { return (char) readUnsignedShort(); }
/** * Reads a char as specified by {@link DataInputStream#readChar()}, except * using little-endian byte order. * * @return the next two bytes of the input stream, interpreted as a * {@code char} in little-endian byte order * @throws IOException if an I/O error occurs */ @Override public char readChar() throws IOException { return (char) readUnsignedShort(); }
/** * Reads a {@code short} as specified by {@link DataInputStream#readShort()}, * except using little-endian byte order. * * @return the next two bytes of the input stream, interpreted as a * {@code short} in little-endian byte order. * @throws IOException if an I/O error occurs. */ @Override public short readShort() throws IOException { return (short) readUnsignedShort(); }
/** * Reads a char as specified by {@link DataInputStream#readChar()}, except * using little-endian byte order. * * @return the next two bytes of the input stream, interpreted as a * {@code char} in little-endian byte order * @throws IOException if an I/O error occurs */ @Override public char readChar() throws IOException { return (char) readUnsignedShort(); }
/** * Reads a char as specified by {@link DataInputStream#readChar()}, except * using little-endian byte order. * * @return the next two bytes of the input stream, interpreted as a * {@code char} in little-endian byte order * @throws IOException if an I/O error occurs */ @Override public char readChar() throws IOException { return (char) readUnsignedShort(); }
/** * Reads a {@code short} as specified by {@link DataInputStream#readShort()}, * except using little-endian byte order. * * @return the next two bytes of the input stream, interpreted as a * {@code short} in little-endian byte order. * @throws IOException if an I/O error occurs. */ @Override public short readShort() throws IOException { return (short) readUnsignedShort(); }
/** * Reads a {@code short} as specified by {@link DataInputStream#readShort()}, * except using little-endian byte order. * * @return the next two bytes of the input stream, interpreted as a * {@code short} in little-endian byte order. * @throws IOException if an I/O error occurs. */ @Override public short readShort() throws IOException { return (short) readUnsignedShort(); }
/** * Reads a char as specified by {@link DataInputStream#readChar()}, except * using little-endian byte order. * * @return the next two bytes of the input stream, interpreted as a * {@code char} in little-endian byte order * @throws IOException if an I/O error occurs */ @Override public char readChar() throws IOException { return (char) readUnsignedShort(); }
/** * Reads a {@code short} as specified by {@link DataInputStream#readShort()}, * except using little-endian byte order. * * @return the next two bytes of the input stream, interpreted as a * {@code short} in little-endian byte order. * @throws IOException if an I/O error occurs. */ @Override public short readShort() throws IOException { return (short) readUnsignedShort(); }
/** * Reads a {@code short} as specified by {@link DataInputStream#readShort()}, * except using little-endian byte order. * * @return the next two bytes of the input stream, interpreted as a * {@code short} in little-endian byte order. * @throws IOException if an I/O error occurs. */ @Override public short readShort() throws IOException { return (short) readUnsignedShort(); }
/** * Reads a {@code short} as specified by {@link DataInputStream#readShort()}, * except using little-endian byte order. * * @return the next two bytes of the input stream, interpreted as a * {@code short} in little-endian byte order. * @throws IOException if an I/O error occurs. */ @Override public short readShort() throws IOException { return (short) readUnsignedShort(); }
/** * Reads a char as specified by {@link DataInputStream#readChar()}, except * using little-endian byte order. * * @return the next two bytes of the input stream, interpreted as a * {@code char} in little-endian byte order * @throws IOException if an I/O error occurs */ @Override public char readChar() throws IOException { return (char) readUnsignedShort(); }
/** * Reads a {@code short} as specified by {@link DataInputStream#readShort()}, * except using little-endian byte order. * * @return the next two bytes of the input stream, interpreted as a * {@code short} in little-endian byte order. * @throws IOException if an I/O error occurs. */ @Override public short readShort() throws IOException { return (short) readUnsignedShort(); }
@Override public int readUnsignedShort() { try { return dataInputStream.readUnsignedShort(); } catch (IOException e) { throw new RuntimeIOException(e); } }