private void checkNotParsing (String type, String name)
    throws SAXNotSupportedException
    {
    if (parsing) {
        throw new SAXNotSupportedException("Cannot change " +
                           type + ' ' +
                           name + " while parsing");

    }
    }
private void checkNotParsing ( String type , String name ) throws SAXNotSupportedException { if ( parsing ) { throw new SAXNotSupportedException ( "Cannot change " + type + ' ' + name + " while parsing" ) ; } }
Throw an exception if we are parsing.

<p>Use this method to detect illegal feature or
property changes.</p>

@param type The type of thing (feature or property).
@param name The feature or property name.
@exception SAXNotSupportedException If a
document is currently being parsed.