Code example for ZipInputStream

Methods: close

0
            reader.setFeature(
                    "http://apache.org/xml/features/nonvalidating/load-external-dtd", 
                    false); 
 
            StringBuilder sb = new StringBuilder();
            ZipInputStream zis = new ZipInputStream(
                    blobHolder.getBlob().getStream());
            try { 
                readXmlZipContent(zis, reader, sb);
            } finally { 
                zis.close();
            } 
            return new SimpleCachableBlobHolder(new StringBlob(sb.toString()));
        } catch (Exception e) {
            throw new ConversionException( 
                    "Error during OpenXml2Text conversion", e);
        } 
    } 
 
    public void init(ConverterDescriptor descriptor) {