1 51 52 package com.lowagie.text.rtf; 53 54 import java.io.IOException ; 55 import java.io.OutputStream ; 56 57 import com.lowagie.text.Font; 58 59 70 public class RtfPageNumber extends GenericRtfField { 71 private String content; 72 73 80 public RtfPageNumber( String content, Font contentFont ) { 81 super("PAGE", "", contentFont); 82 this.content = content; 83 } 84 85 92 public void write( RtfWriter writer, OutputStream out ) throws IOException { 93 writer.writeInitialFontSignature( out, this ); 94 out.write(content.getBytes()); 95 writer.writeFinishingFontSignature( out, this ); 96 super.write(writer, out); 97 } 98 99 102 public String toString() { 103 return content; 104 } 105 } 106 | Popular Tags |