Code example for ZipInputStream

Methods: close

0
                context.setError("Error deploying process", "Type of 'archive' attribute is not recognized");
                return; 
            } 
            final ProcessDefinition processDefinition;
            try { 
                ZipInputStream zis = new ZipInputStream(inputStream);
                try { 
                    processDefinition = ProcessDefinition.parseParZipInputStream(zis);
                    final JbpmContext jbpmContext = context.getJbpmContext();
                    jbpmContext.deployProcessDefinition(processDefinition);
                } finally { 
                    try { 
                        zis.close();
                    } catch (IOException e) {
                        log.warning("Error closing zip Ninput stream after deploy: " + e.getMessage());
                    } 
                } 
            } finally { 
                try { 
                    inputStream.close();
Stop searching for code, let great code find you!  Add Codota to your java IDE