public static void escapeCssString(final Reader reader, final Writer writer,
                                       final CssStringEscapeType type, final CssStringEscapeLevel level)
            throws IOException {

        if (writer == null) {
            throw new IllegalArgumentException("Argument 'writer' cannot be null");
        }

        if (type == null) {
            throw new IllegalArgumentException("The 'type' argument cannot be null");
        }

        if (level == null) {
            throw new IllegalArgumentException("The 'level' argument cannot be null");
        }

        CssStringEscapeUtil.escape(reader, writer, type, level);

    }
public static void escapeCssString ( final Reader reader , final Writer writer , final CssStringEscapeType type , final CssStringEscapeLevel level ) throws IOException { if ( writer == null ) { throw new IllegalArgumentException ( "Argument 'writer' cannot be null" ) ; } if ( type == null ) { throw new IllegalArgumentException ( "The 'type' argument cannot be null" ) ; } if ( level == null ) { throw new IllegalArgumentException ( "The 'level' argument cannot be null" ) ; } CssStringEscapeUtil . escape ( reader , writer , type , level ) ; }
<p>
Perform a (configurable) CSS String <strong>escape</strong> operation on a <tt>Reader</tt> input,
writing results to a <tt>Writer</tt>.
</p>
<p>
This method will perform an escape operation according to the specified
{@link CssStringEscapeType} and
{@link CssStringEscapeLevel} argument values.
</p>
<p>
All other <tt>Reader</tt>/<tt>Writer</tt>-based <tt>escapeCssString*(...)</tt> methods call this one
with preconfigured <tt>type</tt> and <tt>level</tt> values.
</p>
<p>
This method is <strong>thread-safe</strong>.
</p>

@param reader the <tt>Reader</tt> reading the text to be escaped.
@param writer the <tt>java.io.Writer</tt> to which the escaped result will be written. Nothing will
be written at all to this writer if input is <tt>null</tt>.
@param type the type of escape operation to be performed, see
{@link CssStringEscapeType}.
@param level the escape level to be applied, see {@link CssStringEscapeLevel}.
@throws IOException if an input/output exception occurs

@since 1.1.2