DataInputStream.readShort

See the general contract of the <code>readShort</code> method of <code>DataInput</code>. <p> Bytes for this operation are read from the contained input stream.

@return the next two bytes of this input stream, interpreted as a signed 16-bit number. @exception EOFException if this input stream reaches the end before reading two bytes. @exception IOException the stream has been closed and the contained input stream does not support reading after close, or another I/O error occurs. @see java.io.FilterInputStream#inputStream

class DataInputStream
final
short
readShort
()

Meta