code: public int write(byte[] data, int start, int numBytes)
  	{
  		if (fmode != RFM_WRITE)
  		{
  			return DDC_INVALID_CALL;
  		}
  		try
  		{
  			file.write(data, start, numBytes);
  			fmode = RFM_WRITE;
  		}
  		catch (IOException ioe)
  		{
  			return DDC_FILE_ERROR;
  		}
  		riff_header.ckSize += numBytes-start;
  		return DDC_SUCCESS;
  	}
docs: Write NumBytes data.