Package org.apache.photark.jcr.util

Examples of org.apache.photark.jcr.util.ArchiveFileExtractor


          InputStream inStream = new BufferedInputStream(fileItem.getInputStream());
          List<Image> pictures = new ArrayList<Image>();

          if (isArchive(inStream)) {
            ArchiveFileExtractor archiveFileExtractor = new ArchiveFileExtractor(supportedImageTypes);
            pictures = archiveFileExtractor.extractArchive(inStream);
          } else {
            // this is a picture file and not the archive file
            Image picture = new Image(fileName, new Date(), inStream);
            pictures.add(picture);
          }
View Full Code Here


          InputStream inStream = new BufferedInputStream(fileItem.getInputStream());
          List<Image> pictures = new ArrayList<Image>();

          if (isArchive(inStream)) {
            ArchiveFileExtractor archiveFileExtractor = new ArchiveFileExtractor(supportedImageTypes);
            pictures = archiveFileExtractor.extractArchive(inStream);
          } else {
            // this is a picture file and not the archive file
            Image picture = new Image(fileName, new Date(), inStream);
            pictures.add(picture);
          }
View Full Code Here

TOP

Related Classes of org.apache.photark.jcr.util.ArchiveFileExtractor

Copyright © 2018 www.massapicom. 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.