code: public int write(int Data, int NumBytes)
  	{
  		short theDataL = (short) ((Data >>> 16) & 0x0000FFFF);
  		short theDataR = (short) (Data & 0x0000FFFF);
  		short theDataLI = (short) (((theDataL >>> 8) & 0x00FF) | ((theDataL << 8) & 0xFF00));
  		short theDataRI = (short) (((theDataR >>> 8) & 0x00FF) | ((theDataR << 8) & 0xFF00));
  		int theData = ((theDataRI << 16) & 0xFFFF0000) | (theDataLI & 0x0000FFFF);
  		if (fmode != RFM_WRITE)
  		{
  			return DDC_INVALID_CALL;
  		}
  		try
  		{
  			file.writeInt(theData);
  			fmode = RFM_WRITE;
  		}
  		catch (IOException ioe)
  		{
  			return DDC_FILE_ERROR;
  		}
  		riff_header.ckSize += NumBytes;
  		return DDC_SUCCESS;
  	}
docs: Write NumBytes data.