public static char littleChar ( InputStream input ) throws IOException { int lo = input . read ( ) ; if ( lo < 0 ) { throw new EOFException ( ) ; } int hi = input . read ( ) ; if ( hi < 0 ) { throw new EOFException ( ) ; } return ( char ) ( ( hi << 8 ) | lo ) ; }
Reads the next little - endian unsigned 16 bit integer from the given stream .