Examples of JpegExtractor


Examples of gov.nara.nwts.ftappImg.jpeg.JpegExtractor

    }
    return null;
  }
  public Object doJpg(File f) {
    String filekey = getKey(f);
    JpegExtractor jpegext = new JpegExtractor(f);
    ArrayList<Object> list = jpegext.getTags();
    for(Object obj: list){
      if (obj instanceof String) {
        addObject(doJpgObject(filekey, jpegext, (String)obj));
      } else if (obj instanceof XMPPropertyInfo) {
        addObject(doXMPObject(filekey, jpegext.xmpex, (XMPPropertyInfo)obj));
      }
    }
    dt.types.remove(filekey);
    jpegext.close();
    return null;
  }
View Full Code Here

Examples of gov.nara.nwts.ftappImg.jpeg.JpegExtractor

    vals.add(""); //14
  }
 
 
  public Object compute(File f, FileTest fileTest) {
    JpegExtractor jext = new JpegExtractor(f);
    vals.set(0,jext.getInt("tiff:BitsPerSample", 0));
    vals.set(1, jext.getAttribute("Color Space"));
    vals.set(2, jext.getAttribute("Headline"));
    vals.set(3, jext.getAttribute("Caption/Abstract"));
    vals.set(4, jext.getAttribute("Keywords"));

    vals.set(5, jext.getAttribute("X Resolution"));
    vals.set(6, jext.getAttribute("Y Resolution"));

    vals.set(7, jext.getFloat("tiff:XResolution", 0));
    vals.set(8, jext.getFloat("tiff:YResolution", 0));
    vals.set(9, jext.getAttribute("tiff:ImageWidth"));
    vals.set(10, jext.getAttribute("tiff:ImageLength"));

    vals.set(11, jext.getAttribute("Image Width"));
    vals.set(12, jext.getAttribute("Image Height"));
    vals.set(13, jext.getAttribute("Exif Image Width"));
    vals.set(14, jext.getAttribute("Exif Image Height"));
    jext.close();
    return fileTest.fileTest(f);
  }
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.