com.lowagie.text.rtf.document
public class: RtfInfoElement [javadoc |
source]
java.lang.Object
com.lowagie.text.rtf.RtfElement
com.lowagie.text.rtf.document.RtfInfoElement
All Implemented Interfaces:
RtfBasicElement
Stores one information group element. Valid elements are
author, title, subject, keywords, producer and creationdate.
- version:
$ - Id: RtfInfoElement.java 3373 2008-05-12 16:21:24Z xlv $
- author:
Mark - Hall (Mark.Hall@mail.room3b.eu)
- author:
Thomas - Bickel (tmb99@inode.at)
| Constructor: |
public RtfInfoElement(RtfDocument doc,
Meta meta) {
super(doc);
infoType = meta.type();
content = meta.getContent();
}
Constructs a RtfInfoElement based on the given Meta object Parameters:
doc - The RtfDocument this RtfInfoElement belongs to
meta - The Meta object this RtfInfoElement is based on
|
| Method from com.lowagie.text.rtf.document.RtfInfoElement Summary: |
|---|
|
writeContent |
| Method from com.lowagie.text.rtf.document.RtfInfoElement Detail: |
public void writeContent(OutputStream result) throws IOException {
result.write(OPEN_GROUP);
switch(infoType) {
case Meta.AUTHOR:
result.write(INFO_AUTHOR);
break;
case Meta.SUBJECT:
result.write(INFO_SUBJECT);
break;
case Meta.KEYWORDS:
result.write(INFO_KEYWORDS);
break;
case Meta.TITLE:
result.write(INFO_TITLE);
break;
case Meta.PRODUCER:
result.write(INFO_PRODUCER);
break;
case Meta.CREATIONDATE:
result.write(INFO_CREATION_DATE);
break;
default:
result.write(INFO_AUTHOR);
break;
}
result.write(DELIMITER);
if(infoType == Meta.CREATIONDATE) {
result.write(convertDate(content).getBytes());
} else {
document.filterSpecialChar(result, content, false, false);
}
result.write(CLOSE_GROUP);
}
Writes the content of one RTF information element. |