Code example for InputStream

Methods: close

0
    protected abstract InputStream getContentInputStream(OperationContext context, ModelNode operation) throws OperationFailedException;
 
    private static void safeClose(InputStream is) {
        if (is != null) {
            try { 
                is.close();
            } 
            catch (Exception e) {
                DEPLOYMENT_LOGGER.caughtExceptionClosingInputStream(e);
            } 
        } 
    } 
}