|
|
||||||||
| 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.text.RtfAnnotation
public class RtfAnnotation
The RtfAnnotation provides support for adding Annotations to the rtf document. Only simple Annotations with Title / Content are supported.
| Field Summary | |
|---|---|
private static byte[] |
ANNOTATION
Constant for the actual annotation |
private static byte[] |
ANNOTATION_AUTHOR
Constant for the author of the annotation |
private static byte[] |
ANNOTATION_ID
Constant for the id of the annotation |
private String |
content
The content of this RtfAnnotation |
private String |
title
The title of this RtfAnnotation |
| 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 | |
|---|---|
RtfAnnotation(RtfDocument doc,
Annotation annotation)
Constructs a RtfAnnotation based on an Annotation. |
|
| Method Summary | |
|---|---|
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(OutputStream result)
Writes the content of the RtfAnnotation |
| 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[] ANNOTATION_ID
private static final byte[] ANNOTATION_AUTHOR
private static final byte[] ANNOTATION
private String title
private String content
| Constructor Detail |
|---|
public RtfAnnotation(RtfDocument doc,
Annotation annotation)
doc - The RtfDocument this RtfAnnotation belongs toannotation - The Annotation this RtfAnnotation is based off| Method Detail |
|---|
public byte[] write()
writeContent(OutputStream), scheduled for removal at or after 2.1.0
write in interface RtfBasicElementwrite in class RtfElement
public void writeContent(OutputStream result)
throws IOException
writeContent in interface RtfBasicElementwriteContent in class RtfElementIOException
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||