public class RtfAnnotation extends RtfElement
| Modifier and Type | Field and Description |
|---|---|
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
|
document, inHeader, inTableCLOSE_GROUP, COMMA_DELIMITER, DELIMITER, OPEN_GROUP, TWIPS_FACTOR| Constructor and Description |
|---|
RtfAnnotation(RtfDocument doc,
Annotation annotation)
Constructs a RtfAnnotation based on an Annotation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
writeContent(OutputStream result)
Writes the content of the RtfAnnotation
|
intToByteArray, isInTable, setInHeader, setInTable, setRtfDocumentprivate static final byte[] ANNOTATION_ID
private static final byte[] ANNOTATION_AUTHOR
private static final byte[] ANNOTATION
private String title
private String content
public RtfAnnotation(RtfDocument doc, Annotation annotation)
doc - The RtfDocument this RtfAnnotation belongs toannotation - The Annotation this RtfAnnotation is based offpublic void writeContent(OutputStream result) throws IOException
writeContent in interface RtfBasicElementwriteContent in class RtfElementresult - The OutputStream to write the content toIOException