code: private void writeInt(int intValue, OutputStream outStream) throws IOException
     {
        outStream.write(intValue & 0xFF);
        outStream.write((intValue >> 8) & 0xFF);
     }
docs: Writes int into stream.
  
  @param intValue int value
  @param outStream stream
  @throws IOException {@link IOException}