Code example for StreamSource

0
    } 
 
    @Override 
    public Source resolve(String href, String base) throws TransformerException {
        if (hrefSpec.equals(href)) {
            return new StreamSource(inputStreamReference);
        } 
         
        throw new CombinedLimitsTransformerException("Failed to resolve href: " + href);
    } 
} 
Contextual code suggestions in your IDE  Get Codota for Java