public final void writeTTFUShort ( int pos , int val ) throws IOException { if ( ( pos + 2 ) > fsize ) { throw new java . io . EOFException ( "Reached EOF" ) ; } final byte b1 = ( byte ) ( ( val >> 8 ) & 0xff ) ; final byte b2 = ( byte ) ( val & 0xff ) ; file [ pos ] = b1 ; file [ pos + 1 ] = b2 ; }
Write a USHort at a given position .