public void writeListBeginning(final OutputStream result) throws IOException {
        result.write(RtfParagraph.PARAGRAPH_DEFAULTS);
        if(this.inTable) {
            result.write(RtfParagraph.IN_TABLE);
        }
        switch (this.alignment) {
            case Element.ALIGN_LEFT:
                result.write(RtfParagraphStyle.ALIGN_LEFT);
                break;
            case Element.ALIGN_RIGHT:
                result.write(RtfParagraphStyle.ALIGN_RIGHT);
                break;
            case Element.ALIGN_CENTER:
                result.write(RtfParagraphStyle.ALIGN_CENTER);
                break;
            case Element.ALIGN_JUSTIFIED:
            case Element.ALIGN_JUSTIFIED_ALL:
                result.write(RtfParagraphStyle.ALIGN_JUSTIFY);
                break;
        }
        writeIndentation(result);
        result.write(RtfFont.FONT_SIZE);
        result.write(intToByteArray(fontNumber.getFontSize() * 2));
        if(this.symbolIndent > 0) {
            result.write(LIST_LEVEL_SYMBOL_INDENT);
            result.write(intToByteArray(this.leftIndent));
        }
    }
public void writeListBeginning ( final OutputStream result ) throws IOException { result . write ( RtfParagraph . PARAGRAPH_DEFAULTS ) ; if ( this . inTable ) { result . write ( RtfParagraph . IN_TABLE ) ; } switch ( this . alignment ) { case Element . ALIGN_LEFT : result . write ( RtfParagraphStyle . ALIGN_LEFT ) ; break ; case Element . ALIGN_RIGHT : result . write ( RtfParagraphStyle . ALIGN_RIGHT ) ; break ; case Element . ALIGN_CENTER : result . write ( RtfParagraphStyle . ALIGN_CENTER ) ; break ; case Element . ALIGN_JUSTIFIED : case Element . ALIGN_JUSTIFIED_ALL : result . write ( RtfParagraphStyle . ALIGN_JUSTIFY ) ; break ; } writeIndentation ( result ) ; result . write ( RtfFont . FONT_SIZE ) ; result . write ( intToByteArray ( fontNumber . getFontSize ( ) * 2 ) ) ; if ( this . symbolIndent > 0 ) { result . write ( LIST_LEVEL_SYMBOL_INDENT ) ; result . write ( intToByteArray ( this . leftIndent ) ) ; } }
Writes the initialization part of the RtfList

@param result The <code>OutputStream</code> to write to
@throws IOException On i/o errors.