1 50 package com.lowagie.text.rtf.direct; 51 52 import java.io.IOException ; 53 import java.io.OutputStream ; 54 55 import com.lowagie.text.rtf.RtfAddableElement; 56 57 73 public class RtfDirectContent extends RtfAddableElement { 74 78 public static final RtfDirectContent DIRECT_SOFT_LINEBREAK = new RtfDirectContent("\\line"); 79 80 83 private String directContent = ""; 84 85 90 public RtfDirectContent(String directContent) 91 { 92 this.directContent = directContent; 93 } 94 95 99 public byte[] write() 100 { 101 return this.directContent.getBytes(); 102 } 103 104 107 public void writeContent(final OutputStream out) throws IOException 108 { 109 final byte[] contentBytes = this.directContent.getBytes(); 110 out.write(contentBytes); 111 } 112 113 114 } 115 | Popular Tags |