question: public static void writeSwappedShort ( OutputStream output , short value ) throws IOException { output . write ( ( byte ) ( ( value > > 0 ) & 0xff ) ) ; output . write ( ( byte ) ( ( value > > 8 ) & 0xff ) ) ; }
target:  Writes a "short" value to an OutputStream. The value is converted to the opposed endian system while writing.