/** * Reads a character delegating to {@link #readShort()}. * @return the byte read or -1 if the end of stream * @throws IOException if an I/O error occurs * @throws EOFException if an end of file is reached unexpectedly */ @Override public char readChar() throws IOException, EOFException { return (char)readShort(); }
/** @see java.io.DataInput#readChar() */ public char readChar() throws IOException, EOFException { return (char)readShort(); }
@Test public void testReadShort() throws IOException { assertEquals( (short) 0x0201, this.sdis.readShort() ); }
/** * Reads a character delegating to {@link #readShort()}. * @return the byte read or -1 if the end of stream * @throws IOException if an I/O error occurs * @throws EOFException if an end of file is reached unexpectedly */ public char readChar() throws IOException, EOFException { return (char)readShort(); }
/** * Reads a character delegating to {@link #readShort()}. * @return the byte read or -1 if the end of stream * @throws IOException if an I/O error occurs * @throws EOFException if an end of file is reached unexpectedly */ public char readChar() throws IOException, EOFException { return (char)readShort(); }
/** * Reads a character delegating to {@link #readShort()}. * @return the byte read or -1 if the end of stream * @throws IOException if an I/O error occurs * @throws EOFException if an end of file is reached unexpectedly */ public char readChar() throws IOException, EOFException { return (char)readShort(); }
/** * Reads a character delegating to {@link #readShort()}. * @return the byte read or -1 if the end of stream * @throws IOException if an I/O error occurs * @throws EOFException if an end of file is reached unexpectedly */ @Override public char readChar() throws IOException, EOFException { return (char)readShort(); }
/** * Reads a character delegating to {@link #readShort()}. * @return the byte read or -1 if the end of stream * @throws IOException if an I/O error occurs * @throws EOFException if an end of file is reached unexpectedly */ public char readChar() throws IOException, EOFException { return (char)readShort(); }
/** * Reads a character delegating to {@link #readShort()}. * @return the byte read or -1 if the end of stream * @throws IOException if an I/O error occurs * @throws EOFException if an end of file is reached unexpectedly */ public char readChar() throws IOException, EOFException { return (char)readShort(); }