com.lowagie.text.rtf.document
public class: RtfInfoGroup [javadoc |
source]
java.lang.Object
com.lowagie.text.rtf.RtfElement
com.lowagie.text.rtf.document.RtfInfoGroup
All Implemented Interfaces:
RtfBasicElement
The RtfInfoGroup stores information group elements.
- version:
$ - Id: RtfInfoGroup.java 3440 2008-05-25 18:16:48Z howard_s $
- author:
Mark - Hall (Mark.Hall@mail.room3b.eu)
- author:
Thomas - Bickel (tmb99@inode.at)
- author:
Howard - Shank (hgshank@yahoo.com)
| Field Summary |
|---|
| ArrayList | infoElements | The RtfInfoElements that belong to this RtfInfoGroup |
| Constructor: |
public RtfInfoGroup(RtfDocument doc) {
super(doc);
infoElements = new ArrayList();
}
Constructs a RtfInfoGroup belonging to a RtfDocument Parameters:
doc - The RtfDocument this RtfInfoGroup belongs to
|
| Method from com.lowagie.text.rtf.document.RtfInfoGroup Summary: |
|---|
|
add, writeContent |
| Method from com.lowagie.text.rtf.document.RtfInfoGroup Detail: |
public void add(RtfInfoElement infoElement) {
this.infoElements.add(infoElement);
}
Adds an RtfInfoElement to the RtfInfoGroup |
public void writeContent(OutputStream result) throws IOException {
result.write(OPEN_GROUP);
result.write(INFO_GROUP);
for(int i = 0; i < infoElements.size(); i++) {
RtfInfoElement infoElement = (RtfInfoElement) infoElements.get(i);
infoElement.writeContent(result);
}
// handle document protection
if(document.getDocumentSettings().isDocumentProtected()) {
result.write(OPEN_GROUP);
result.write(INFO_PASSWORD);
result.write(DELIMITER);
result.write(document.getDocumentSettings().getProtectionHashBytes());
result.write(CLOSE_GROUP);
}
result.write(CLOSE_GROUP);
this.document.outputDebugLinebreak(result);
}
Writes the RTF information group and its elements. |