com.lowagie.text.rtf.document
Class RtfGenerator

java.lang.Object
  extended by com.lowagie.text.rtf.RtfElement
      extended by com.lowagie.text.rtf.document.RtfGenerator
All Implemented Interfaces:
RtfBasicElement

public class RtfGenerator
extends RtfElement

The RtfGenerator creates the (\*\generator ...} element.

Since:
2.0.8
Version:
$Id$
Author:
Howard Shank (hgshank@yahoo.com)

Field Summary
private static byte[] GENERATOR
          Generator group starting tag
 
Fields inherited from class com.lowagie.text.rtf.RtfElement
document, inHeader, inTable
 
Fields inherited from interface com.lowagie.text.rtf.RtfBasicElement
CLOSE_GROUP, COMMA_DELIMITER, DELIMITER, OPEN_GROUP, TWIPS_FACTOR
 
Constructor Summary
RtfGenerator(RtfDocument doc)
          Constructs a RtfGenerator belonging to a RtfDocument
 
Method Summary
 byte[] write()
          Deprecated. As of iText 2.0.6 or earlier, replaced by writeContent(OutputStream), scheduled for removal at or after 2.1.0
 void writeContent(java.io.OutputStream result)
          Writes the element content to the given output stream.
 
Methods inherited from class com.lowagie.text.rtf.RtfElement
intToByteArray, isInTable, setInHeader, setInTable, setRtfDocument
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GENERATOR

private static final byte[] GENERATOR
Generator group starting tag

Constructor Detail

RtfGenerator

public RtfGenerator(RtfDocument doc)
Constructs a RtfGenerator belonging to a RtfDocument

Parameters:
doc - The RtfDocument this RtfGenerator belongs to
Method Detail

write

public byte[] write()
Deprecated. As of iText 2.0.6 or earlier, replaced by writeContent(OutputStream), scheduled for removal at or after 2.1.0

Writes the RtfGenerator.

Specified by:
write in interface RtfBasicElement
Specified by:
write in class RtfElement
Returns:
A byte array containing the group

writeContent

public void writeContent(java.io.OutputStream result)
                  throws java.io.IOException
Writes the element content to the given output stream.

Specified by:
writeContent in interface RtfBasicElement
Overrides:
writeContent in class RtfElement
Throws:
java.io.IOException