1 17 18 19 20 21 27 28 package org.apache.fop.render.rtf.rtflib.rtfdoc; 29 30 import java.io.IOException ; 31 import java.io.Writer ; 32 33 36 37 public class RtfString extends RtfElement { 38 private String text = ""; 39 40 RtfString(RtfContainer parent, Writer w, String s) 41 throws IOException { 42 super(parent, w); 43 44 text = s; 45 } 46 47 50 public boolean isEmpty() { 51 return text.trim().equals(""); 52 } 53 54 58 protected void writeRtfContent() throws IOException { 59 RtfStringConverter.getInstance().writeRtfString(writer, text); 60 } 61 62 public String getText() { 63 return text; 64 } 65 66 public void setText(String s) { 67 text = s; 68 } 69 } | Popular Tags |