All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openstreetmap.atlas.utilities.archive.ArchiveVetoDelegate Maven / Gradle / Ivy

There is a newer version: 7.0.8
Show newest version
package org.openstreetmap.atlas.utilities.archive;

import java.io.File;

/**
 * Callback that informs an object of type T for a given file if it should be processed or not. Some
 * files should be skipped (for example, .DS_Store on the OS X), so this lets us configure the
 * Archiver to skip certain files.
 *
 * @param 
 *            the owner of item (in this case, an Archiver or Extractor)
 * @author cstaylor
 */
public interface ArchiveVetoDelegate
{
    /**
     * For a given file item, should we skip it?
     *
     * @param source
     *            the potential owner of the file
     * @param item
     *            the file to possibly be skipped
     * @return true if this item should be skipped, false otherwise
     */
    boolean shouldSkip(T source, File item);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy