Code example for InputSource

Methods: setSystemId

0
     * Build a configuration object using an InputStream; supplying a systemId 
     * to make messages about all kinds of errors more meaningfull. 
     */ 
    public ConfigurationHelper build(final InputStream inputStream, final String systemId)
            throws ConfigurationException { 
        final InputSource inputSource = new InputSource(inputStream);
        inputSource.setSystemId(systemId);
        return build(inputSource);
    } 
 
    /** 
     * Build a configuration object using an URI 
     */ 
    public ConfigurationHelper build(final String uri) throws ConfigurationException {
        return build(new InputSource(uri));
    } 
 
    /** 
     * Build a configuration object using an XML InputSource object 
     */ 
    public ConfigurationHelper build(final InputSource input) throws ConfigurationException {