Code Search for Developers
 
 
  

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

Kneobase

Kneobase is an enterprise search engine, based upon the Lucene search engine and the Spring framework. It allows to perform full-text search across many different content sources. It is highly adaptable out-of-the-box and has a pluggable architecture.

Project homepage: http://sourceforge.net/projects/kneobase
Programming language(s): Java,XML
License: other

  condition/
    FSCategoryCondition.java
    FSRegularExpressionCondition.java
  documentbuilder/
    A_FSFieldBuilder.java
  FSContentSource.java
  FSPathCriteria.java
  FileAdapter.java
  FolderAdapter.java