public void writeContent ( final OutputStream result ) throws IOException { result . write ( OPEN_GROUP ) ; result . write ( ANNOTATION_ID ) ; result . write ( DELIMITER ) ; result . write ( intToByteArray ( document . getRandomInt ( ) ) ) ; result . write ( CLOSE_GROUP ) ; result . write ( OPEN_GROUP ) ; result . write ( ANNOTATION_AUTHOR ) ; result . write ( DELIMITER ) ; result . write ( DocWriter . getISOBytes ( title ) ) ; result . write ( CLOSE_GROUP ) ; result . write ( OPEN_GROUP ) ; result . write ( ANNOTATION ) ; result . write ( RtfParagraph . PARAGRAPH_DEFAULTS ) ; result . write ( DELIMITER ) ; result . write ( DocWriter . getISOBytes ( content ) ) ; result . write ( CLOSE_GROUP ) ; }
Writes the content of the RtfAnnotation