Examples of ISimpleInArchiveItem


Examples of net.sf.sevenzipjbinding.simple.ISimpleInArchiveItem

          //byte data[] = new byte[65536];
          RandomAccessFile rf = new RandomAccessFile(file, "r");

          arc = SevenZip.openInArchive(null, (IInStream) new RandomAccessFileInStream(rf));
          ISimpleInArchive simpleInArchive = arc.getSimpleInterface();
          ISimpleInArchiveItem realItem = null;

          for (ISimpleInArchiveItem item : simpleInArchive.getArchiveItems()) {
            if (item.getPath().equals(zeName)) {
              realItem = item;
              break;
            }
          }

          if (realItem == null) {
            LOGGER.trace("No such item " + zeName + " found in archive");
            return;
          }

          realItem.extractSlow(new ISequentialOutStream() {
            @Override
            public int write(byte[] data) throws SevenZipException {
              try {
                out.write(data);
              } catch (IOException e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.