FSContentSource.java from Kneobase at Krugle
Show FSContentSource.java syntax highlighted
/*
* Created on 18/05/2004
*
*/
package com.kneobase.driver.fs;
import java.io.File;
import com.kneobase.KneobaseException;
import com.kneobase.driver.content.A_TreeContentSource;
/**
* @author Ernesto De Santis - Presidente de ILA
*
*/
public class FSContentSource extends A_TreeContentSource {
public FSContentSource(String n) throws KneobaseException{
super(n);
}
public FSContentSource(String n, File root) throws KneobaseException {
super(n, root);
}
public FSContentSource(String n, String rootPath) throws KneobaseException {
super(n, new File(rootPath));
}
public void setRootFolder(String path){
setSourceObject(new File(path));
}
public void setRootFolder(File folder){
setSourceObject(folder);
}
public File getRootFolder(){
return (File) getSourceObject();
}
public String getAbsolutePath() {
return getRootFolder().getAbsolutePath();
}
public char separatorChar() {
return File.separatorChar;
}
}
See more files for this project here