public int toOutputStream(final OutputStream os, final boolean rebuild,
            final boolean flushOnWrite) throws IOException {
        return writePrintStructureToOutputStream(os, rebuild, charset,
                flushOnWrite);
    }
public int toOutputStream(final OutputStream os, final boolean rebuild,
            final boolean flushOnWrite) throws IOException {
        return writePrintStructureToOutputStream(os, rebuild, charset,
                flushOnWrite);
    }
public int toOutputStream ( final OutputStream os , final boolean rebuild , final boolean flushOnWrite ) throws IOException { return writePrintStructureToOutputStream ( os , rebuild , charset , flushOnWrite ) ; }
@param os
the object of {@code OutputStream} to write to.
@param rebuild
true to rebuild &amp; false to write previously
built bytes.
@param flushOnWrite
true to flush on each write to OutputStream
@return the total number of bytes written

@throws IOException
@since 3.0.2
@param os the object of { @code OutputStream } to write to . @param rebuild true to rebuild &amp ; false to write previously built bytes . @param flushOnWrite true to flush on each write to OutputStream @return the total number of bytes written