com.lowagie.text.rtf.document

Class RtfInfoGroup

public class RtfInfoGroup extends RtfElement

The RtfInfoGroup stores information group elements.

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

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

Field Summary
ArrayListinfoElements
The RtfInfoElements that belong to this RtfInfoGroup
static byte[]INFO_GROUP
Information group starting tag
Constructor Summary
RtfInfoGroup(RtfDocument doc)
Constructs a RtfInfoGroup belonging to a RtfDocument
Method Summary
voidadd(RtfInfoElement infoElement)
Adds an RtfInfoElement to the RtfInfoGroup
byte[]write()
Writes the RtfInfoGroup and its RtfInfoElement elements.
voidwriteContent(OutputStream result)
Writes the element content to the given output stream.

Field Detail

infoElements

ArrayList infoElements
The RtfInfoElements that belong to this RtfInfoGroup

INFO_GROUP

private static final byte[] INFO_GROUP
Information group starting tag

Constructor Detail

RtfInfoGroup

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

Parameters: doc The RtfDocument this RtfInfoGroup belongs to

Method Detail

add

public void add(RtfInfoElement infoElement)
Adds an RtfInfoElement to the RtfInfoGroup

Parameters: infoElement The RtfInfoElement to add

write

public byte[] write()

Deprecated: replaced by writeContent

Writes the RtfInfoGroup and its RtfInfoElement elements.

Returns: A byte array containing the group and its elements

writeContent

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