Class RtfEfficientMemoryCache

java.lang.Object
com.lowagie.text.rtf.document.output.RtfEfficientMemoryCache
All Implemented Interfaces:
RtfDataCache

public class RtfEfficientMemoryCache extends Object implements RtfDataCache
The RtfEfficientMemoryCache is an RtfDataCache that keeps the whole rtf document data in memory. More efficient than RtfMemoryCache.
Version:
$Id: RtfEfficientMemoryCache.java 3255 2008-04-14 18:33:30Z xlv $
  • Field Details

  • Constructor Details

    • RtfEfficientMemoryCache

      public RtfEfficientMemoryCache()
      Constructs a RtfMemoryCache.
  • Method Details

    • getOutputStream

      public OutputStream getOutputStream()
      Gets the OutputStream.
      Specified by:
      getOutputStream in interface RtfDataCache
      Returns:
      The OutputStream the RtfDocument can use.
    • writeTo

      public void writeTo(OutputStream target) throws IOException
      Writes the content of the buffer into the OutputStream.
      Specified by:
      writeTo in interface RtfDataCache
      Parameters:
      target - The OutputStream to write the content into.
      Throws:
      IOException - If an error occurs reading/writing.