Code example for InputSource

Methods: setSystemId

0
     * parses and validates the given InputSream using the given DefaultHandler and systemId 
     */ 
    public void parse(InputStream is, DefaultHandler dh, String systemId) throws SAXException, IOException
    { 
        XMLReader reader = getXMLReader();
        InputSource source = new InputSource(is);
        source.setSystemId(systemId);
        reader.setContentHandler(dh);
        reader.parse(source);
    } 
    /** 
     * parses and validates the given uri using the given DefaultHandler 
     */ 
    public void parse(String uri, DefaultHandler dh) throws SAXException, IOException
    { 
        XMLReader reader = getXMLReader();
        InputSource source = new InputSource(uri);
        reader.setContentHandler(dh);
        reader.parse(source);
    } 
Contextual code suggestions in your IDE  Get Codota for Java