IOUtils.copy(dis, bos); dis.close(); CryptoAPIDocumentInputStream sbis = new CryptoAPIDocumentInputStream(this, bos.toByteArray()); LittleEndianInputStream leis = new LittleEndianInputStream(sbis); POIFSFileSystem fsOut = null; if (sbis.skip(skipN) < skipN) { throw new EOFException("buffer underrun"); sbis.setBlock(0); int encryptedStreamDescriptorCount = (int) leis.readUInt(); StreamDescriptorEntry entries[] = new StreamDescriptorEntry[encryptedStreamDescriptorCount]; sbis.seek(entry.streamOffset); sbis.setBlock(entry.block); InputStream is = new BoundedInputStream(sbis, entry.streamSize); fsOut.createDocument(is, entry.streamName);
IOUtils.copy(dis, bos); dis.close(); CryptoAPIDocumentInputStream sbis = new CryptoAPIDocumentInputStream(this, bos.toByteArray()); LittleEndianInputStream leis = new LittleEndianInputStream(sbis); POIFSFileSystem fsOut = null; if (sbis.skip(skipN) < skipN) { throw new EOFException("buffer underrun"); sbis.setBlock(0); int encryptedStreamDescriptorCount = (int) leis.readUInt(); StreamDescriptorEntry entries[] = new StreamDescriptorEntry[encryptedStreamDescriptorCount]; sbis.seek(entry.streamOffset); sbis.setBlock(entry.block); InputStream is = new BoundedInputStream(sbis, entry.streamSize); fsOut.createDocument(is, entry.streamName);