|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lowagie.text.rtf.RtfElement
com.lowagie.text.rtf.document.RtfInfoElement
public class RtfInfoElement
Stores one information group element. Valid elements are author, title, subject, keywords, producer and creationdate.
Field Summary | |
---|---|
private java.lang.String |
content
The content of this RtfInfoElement |
private static byte[] |
INFO_AUTHOR
Constant for the author element |
private static byte[] |
INFO_CREATION_DATE
Constant for the creationdate element |
private static byte[] |
INFO_KEYWORDS
Constant for the keywords element |
private static byte[] |
INFO_PRODUCER
Constant for the producer element |
private static byte[] |
INFO_SUBJECT
Constant for the subject element |
private static byte[] |
INFO_TITLE
Constant for the title element |
private int |
infoType
The type of this RtfInfoElement. |
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 | |
---|---|
RtfInfoElement(RtfDocument doc,
Meta meta)
Constructs a RtfInfoElement based on the given Meta object |
Method Summary | |
---|---|
private java.lang.String |
convertDate(java.lang.String date)
Converts a date from the format used by iText to the format required by rtf. iText: EEE MMM dd HH:mm:ss zzz yyyy - rtf: \\'yr'yyyy\\'mo'MM\\'dy'dd\\'hr'HH\\'min'mm\\'sec'ss |
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 |
---|
private static final byte[] INFO_AUTHOR
private static final byte[] INFO_SUBJECT
private static final byte[] INFO_KEYWORDS
private static final byte[] INFO_TITLE
private static final byte[] INFO_PRODUCER
private static final byte[] INFO_CREATION_DATE
private int infoType
private java.lang.String content
Constructor Detail |
---|
public RtfInfoElement(RtfDocument doc, Meta meta)
doc
- The RtfDocument this RtfInfoElement belongs tometa
- The Meta object this RtfInfoElement is based onMethod Detail |
---|
public byte[] write()
writeContent(OutputStream)
, scheduled for removal at or after 2.1.0
write
in interface RtfBasicElement
write
in class RtfElement
public void writeContent(java.io.OutputStream result) throws java.io.IOException
writeContent
in interface RtfBasicElement
writeContent
in class RtfElement
java.io.IOException
private java.lang.String convertDate(java.lang.String date)
date
- The date formated by iText
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |