// Path: GalleryToy/app/src/main/java/gov/sequarius/toys/gallery/utils/FileFilterBySuffix.java
// public class FileFilterBySuffix implements FileFilter {
// 
//     private String suffix;
// 
//     public FileFilterBySuffix(String suffix) {
//         super();
//         this.suffix = suffix;
//     }
// 
//     @Override
//     public boolean accept(File pathname) {
// 
//         return pathname.getName().endsWith(suffix);
//     }
// }


import java.io.FileFilter;
import gov.sequarius.toys.gallery.utils.FileFilterBySuffix;

package gov.sequarius.toys.gallery.task;



/**
 * A handler for ScanImageFileTask
 * Created by Sequarius on 2016/5/10.
 */
public abstract class ScanHandler {
    public static final String SUFFIX_JPG = "jpg";
    private int taskCount;

    private FileFilter fileFilter;

    private long mStartTime=Long.MIN_VALUE;

    public long getStartTime() {
        return mStartTime;
    }

    public ScanHandler() {

// Path: GalleryToy/app/src/main/java/gov/sequarius/toys/gallery/utils/FileFilterBySuffix.java
// public class FileFilterBySuffix implements FileFilter {
// 
//     private String suffix;
// 
//     public FileFilterBySuffix(String suffix) {
//         super();
//         this.suffix = suffix;
//     }
// 
//     @Override
//     public boolean accept(File pathname) {
// 
//         return pathname.getName().endsWith(suffix);
//     }
// }


// Path: GalleryToy/app/src/main/java/gov/sequarius/toys/gallery/task/ScanHandler.java
import java.io.FileFilter;
import gov.sequarius.toys.gallery.utils.FileFilterBySuffix;

package gov.sequarius.toys.gallery.task;



/**
 * A handler for ScanImageFileTask
 * Created by Sequarius on 2016/5/10.
 */
public abstract class ScanHandler {
    public static final String SUFFIX_JPG = "jpg";
    private int taskCount;

    private FileFilter fileFilter;

    private long mStartTime=Long.MIN_VALUE;

    public long getStartTime() {
        return mStartTime;
    }

    public ScanHandler() {

        fileFilter=new FileFilterBySuffix(SUFFIX_JPG);
