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