code: public void setDataCacheStyle(int dataCacheStyle) {
          switch(dataCacheStyle) {
              case RtfDataCache.CACHE_MEMORY_EFFICIENT:	
              	this.dataCacheStyle = RtfDataCache.CACHE_MEMORY_EFFICIENT;
              	break;
              case RtfDataCache.CACHE_DISK: 				
              	this.dataCacheStyle = RtfDataCache.CACHE_DISK;
              	break;
              default:
              case RtfDataCache.CACHE_MEMORY: 			
              	this.dataCacheStyle = RtfDataCache.CACHE_MEMORY;
              	break;
          }
      }
docs: Sets the data cache style. This controls where the document is cached during
  generation. Two cache styles are supported:
  <ul>
  <li>RtfDataCache.CACHE_MEMORY: The document is cached in memory. This is fast,
  but places a limit on how big the document can get before causing
  OutOfMemoryExceptions.</li>
  <li>RtfDataCache.CACHE_DISK: The document is cached on disk. This is slower
  than the CACHE_MEMORY setting, but the document size is now only constrained
  by the amount of free disk space.</li>
  </ul>
  
  @param dataCacheStyle The data cache style to set. Valid constants can be found
  in RtfDataCache.
  @see com.lowagie.text.rtf.document.output.RtfDataCache