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

refdiff.core.io.SourceFileSet Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
package refdiff.core.io;

import java.io.IOException;
import java.nio.file.Path;
import java.util.List;
import java.util.Optional;

public abstract class SourceFileSet {
	
	private List sourceFiles;
	
	public SourceFileSet(List sourceFiles) {
		this.sourceFiles = sourceFiles;
	}
	
	public List getSourceFiles() {
		return sourceFiles;
	}
	
	public abstract String readContent(SourceFile sourceFile) throws IOException;
	
	public Optional getBasePath() {
		return Optional.empty();
	}
	
	public abstract String describeLocation(SourceFile sourceFile);
	
	public void materializeAt(Path folder) throws IOException {
		throw new UnsupportedOperationException();
	}
	
	public void materializeAtBase(Path baseFolder) throws IOException {
		throw new UnsupportedOperationException();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy