Package gov.nara.nwts.ftappImg.filetest

Source Code of gov.nara.nwts.ftappImg.filetest.CountTiff

package gov.nara.nwts.ftappImg.filetest;

import gov.nara.nwts.ftapp.FTDriver;
import gov.nara.nwts.ftapp.filetest.DefaultFileTest;
import gov.nara.nwts.ftapp.filter.TiffFileTestFilter;
import gov.nara.nwts.ftappImg.stats.ImageStats;
import gov.nara.nwts.ftapp.stats.Stats;

import java.io.File;

/**
* Extract key metadata from a TIF file; this implementation has been superceeded by better implementations
* @author TBrady
*
*/
class CountTiff extends DefaultFileTest {

  public CountTiff(FTDriver dt) {
    super(dt);
  }

  public String toString() {
    return "Tif Properties";
  }
  public String getKey(File f) {
    return f.getName();
  }
 
    public String getShortName(){return "Tif";}

  public Object fileTest(File f) {
    return null;
  }
    public Stats createStats(String key){
      return new ImageStats(key);
    }
    public Object[][] getStatsDetails() {
      return ImageStats.details;
    }

  public void initFilters() {
    filters.add(new TiffFileTestFilter());
  }

  public String getDescription() {
    return "This test will extract key metadata items from each TIF file that is found";
  }

}
TOP

Related Classes of gov.nara.nwts.ftappImg.filetest.CountTiff

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.