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

com.documents4j.job.FileSourceFromFile Maven / Gradle / Ivy

There is a newer version: 1.1.12
Show newest version
package com.documents4j.job;

import com.documents4j.api.IFileSource;
import com.google.common.base.MoreObjects;

import java.io.File;

class FileSourceFromFile implements IFileSource {

    private final File file;

    public FileSourceFromFile(File file) {
        this.file = file;
    }

    @Override
    public File getFile() {
        return file;
    }

    @Override
    public void onConsumed(File file) {
        /* do nothing */
    }

    @Override
    public String toString() {
        return MoreObjects.toStringHelper(FileSourceFromFile.class)
                .add("file", file)
                .toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy