public class RtfInfoElement extends RtfElement
Modifier and Type | Field and Description |
---|---|
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.
|
document, inHeader, inTable
CLOSE_GROUP, COMMA_DELIMITER, DELIMITER, OPEN_GROUP, TWIPS_FACTOR
Constructor and Description |
---|
RtfInfoElement(RtfDocument doc,
Meta meta)
Constructs a RtfInfoElement based on the given Meta object
|
Modifier and Type | Method and Description |
---|---|
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()
Writes this RtfInfoElement
|
intToByteArray, isInTable, setInHeader, setInTable, setRtfDocument
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
public RtfInfoElement(RtfDocument doc, Meta meta)
doc
- The RtfDocument this RtfInfoElement belongs tometa
- The Meta object this RtfInfoElement is based onpublic byte[] write()
write
in interface RtfBasicElement
write
in class RtfElement
private java.lang.String convertDate(java.lang.String date)
date
- The date formated by iText