public int toBigOutputStream(final OutputStream os, final String charset)
            throws IOException {

        if (charset == null) {
            return writePrintStructureToOSWithoutRecursive(
                    Charset.forName(charset), os, true);
        }
        return writePrintStructureToOSWithoutRecursive(this.charset, os, true);
    }
public int toBigOutputStream(final OutputStream os, final String charset)
            throws IOException {

        if (charset == null) {
            return writePrintStructureToOSWithoutRecursive(
                    Charset.forName(charset), os, true);
        }
        return writePrintStructureToOSWithoutRecursive(this.charset, os, true);
    }
public int toBigOutputStream ( final OutputStream os , final String charset ) throws IOException { if ( charset == null ) { return writePrintStructureToOSWithoutRecursive ( Charset . forName ( charset ) , os , true ) ; } return writePrintStructureToOSWithoutRecursive ( this . charset , os , true ) ; }
Use this method to produce HTML from very heavy and complicated tag
hierarchy. For normal and simple HTML hierarchy use
{@code toOutputStream} method which is faster than this method. The
advantage of {@code toBigOutputStream} over {@code toOutputStream} is it
will never throw {@code StackOverflowError} and the memory consumed at
the time of writing could be available for GC (depends on JVM GC rules).
<br>
NB:- this method has not been undergone all testing process.

@param os
the object of {@code OutputStream} to write to.
@param charset
the charset
@return the total number of bytes written
@throws IOException
@since 2.1.12
Use this method to produce HTML from very heavy and complicated tag hierarchy . For normal and simple HTML hierarchy use { @code toOutputStream } method which is faster than this method . The advantage of { @code toBigOutputStream } over { @code toOutputStream } is it will never throw { @code StackOverflowError } and the memory consumed at the time of writing could be available for GC ( depends on JVM GC rules ) . <br > NB : - this method has not been undergone all testing process .