technology.dice.dicewhere.downloader.destination.FileAcceptor Maven / Gradle / Ivy
package technology.dice.dicewhere.downloader.destination;
import java.net.URI;
import java.time.Instant;
import java.util.Optional;
import technology.dice.dicewhere.downloader.md5.MD5Checksum;
import technology.dice.dicewhere.downloader.stream.StreamConsumer;
public interface FileAcceptor {
StreamConsumer getStreamConsumer(MD5Checksum originalFileMd5, Instant originalFileTimestamp);
boolean destinationExists();
boolean destinationWritable();
Optional existingFileMd5();
URI getUri();
}