1 50 51 package com.lowagie.text.rtf.document.output; 52 53 import java.io.ByteArrayOutputStream ; 54 import java.io.IOException ; 55 import java.io.OutputStream ; 56 57 65 public class RtfMemoryCache implements RtfDataCache { 66 67 70 private ByteArrayOutputStream data = null; 71 72 75 public RtfMemoryCache() { 76 this.data = new ByteArrayOutputStream (); 77 } 78 79 82 public OutputStream getOutputStream() { 83 return this.data; 84 } 85 86 89 public void writeTo(OutputStream target) throws IOException { 90 this.data.writeTo(target); 91 } 92 93 } 94 | Popular Tags |