Code example for InputStream

Methods: close

0
 
    private TldMetaData parseTLD(InputStream is) throws Exception {
        try { 
            final XMLInputFactory inputFactory = XMLInputFactory.newInstance();
            inputFactory.setXMLResolver(NoopXMLResolver.create());
            XMLStreamReader xmlReader = inputFactory.createXMLStreamReader(is);
            return TldMetaDataParser.parse(xmlReader    );
        } finally { 
            try { 
                if (is != null) {
                    is.close();
                } 
            } catch (IOException e) {
                // Ignore 
            } 
        } 
    } 
 
    public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
        final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
Contextual code suggestions in your IDE  Get Codota for Java