FileDocumentSource.java 563 Bytes
/*
 * Decompiled with CFR 0_118.
 */
package com.day.util.diff;

import com.day.util.diff.DocumentSource;
import java.io.File;

public class FileDocumentSource
implements DocumentSource {
    static final String CVS_ID = "$URL$ $Rev$ $Date$";
    private final File file;

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

    public File getFile() {
        return this.file;
    }

    public String getLabel() {
        return this.file.getName();
    }

    public String getLocation() {
        return this.file.getPath();
    }
}