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 java.lang.String |
content
The content of this RtfAnnotation
|
private java.lang.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(java.io.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 java.lang.String title
private java.lang.String content
public RtfAnnotation(RtfDocument doc, Annotation annotation)
doc - The RtfDocument this RtfAnnotation belongs toannotation - The Annotation this RtfAnnotation is based offpublic void writeContent(java.io.OutputStream result)
throws java.io.IOException
writeContent in interface RtfBasicElementwriteContent in class RtfElementresult - The OutputStream to write the content tojava.io.IOException