com.lowagie.text.rtf.text

Class RtfChapter

public class RtfChapter extends RtfSection

The RtfChapter wraps a Chapter element. INTERNAL CLASS

Version: $Id: RtfChapter.java 2776 2007-05-23 20:01:40Z hallm $

Author: Mark Hall (mhall@edu.uni-klu.ac.at) Thomas Bickel (tmb99@inode.at)

Constructor Summary
RtfChapter(RtfDocument doc, Chapter chapter)
Constructs a RtfChapter for a given Chapter
Method Summary
byte[]write()
Writes the RtfChapter and its contents
voidwriteContent(OutputStream result)
Writes the RtfChapter and its contents

Constructor Detail

RtfChapter

public RtfChapter(RtfDocument doc, Chapter chapter)
Constructs a RtfChapter for a given Chapter

Parameters: doc The RtfDocument this RtfChapter belongs to chapter The Chapter this RtfChapter is based on

Method Detail

write

public byte[] write()

Deprecated: replaced by writeContent

Writes the RtfChapter and its contents

Returns: A byte array containing the RtfChapter and its contents

writeContent

public void writeContent(OutputStream result)
Writes the RtfChapter and its contents