Package org.apache.photark

Examples of org.apache.photark.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);
          }

          for (Image picture : pictures) {
            addPictureToAlbum(albumName,albumDescription, picture);
View Full Code Here


            ArchiveEntry entry = null;
            while ((entry = archiveInputStream.getNextEntry()) != null) {
                if (!entry.isDirectory() && isEntryTypeAllowd(entry)) {
                    byte buf[] = IOUtils.toByteArray(archiveInputStream);
                    InputStream inputStream = new ByteArrayInputStream(buf);
                    Image picture = new Image(entry.getName(), new Date(), inputStream);
                    pictures.add(picture);
                }
            }
        } catch (ArchiveException e) {
            e.printStackTrace();
View Full Code Here

TOP

Related Classes of org.apache.photark.Image

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.