1 47 48 package com.lowagie.text.rtf.document.output; 49 50 import java.io.IOException ; 51 import java.io.OutputStream ; 52 53 61 public class RtfEfficientMemoryCache implements RtfDataCache 62 { 63 66 private final RtfByteArrayBuffer bab; 67 68 71 public RtfEfficientMemoryCache() 72 { 73 bab = new RtfByteArrayBuffer(); 74 } 75 76 79 public OutputStream getOutputStream() 80 { 81 return(bab); 82 } 83 84 87 public void writeTo(OutputStream target) throws IOException 88 { 89 bab.writeTo(target); 90 } 91 92 } 93 | Popular Tags |