public void parse(InputStream is, HandlerBase hb)
        throws SAXException, IOException {
        if (is == null) {
            throw new IllegalArgumentException("InputStream cannot be null");
        }

        InputSource input = new InputSource(is);
        this.parse(input, hb);
    }
public void parse ( InputStream is , HandlerBase hb ) throws SAXException , IOException { if ( is == null ) { throw new IllegalArgumentException ( "InputStream cannot be null" ) ; } InputSource input = new InputSource ( is ) ; this . parse ( input , hb ) ; }
<p>Parse the content of the given {@link java.io.InputStream}
instance as XML using the specified {@link org.xml.sax.HandlerBase}.
<i> Use of the DefaultHandler version of this method is recommended as
the HandlerBase class has been deprecated in SAX 2.0</i>.</p>

@param is InputStream containing the content to be parsed.
@param hb The SAX HandlerBase to use.

@throws IllegalArgumentException If the given InputStream is null.
@throws SAXException If parse produces a SAX error.
@throws IOException If an IO error occurs interacting with the
<code>InputStream</code>.

@see org.xml.sax.DocumentHandler