org.spantus.externals.recognition.corpus
Class CorpusRepositoryFileImpl
java.lang.Object
org.spantus.externals.recognition.corpus.CorpusRepositoryFileImpl
- All Implemented Interfaces:
- CorpusRepository
public class CorpusRepositoryFileImpl
- extends Object
- implements CorpusRepository
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CORPUS_ENTRY_FILE_EXT
public static final String CORPUS_ENTRY_FILE_EXT
- See Also:
- Constant Field Values
DEFAULT_REPO_PATH
public static final String DEFAULT_REPO_PATH
- See Also:
- Constant Field Values
CorpusRepositoryFileImpl
public CorpusRepositoryFileImpl()
findAllEntries
public List<CorpusEntry> findAllEntries()
- Specified by:
findAllEntries in interface CorpusRepository
findAllFileEntries
public List<CorpusFileEntry> findAllFileEntries()
save
public void save(CorpusEntry entry)
- Save and reset repo
- Specified by:
save in interface CorpusRepository
- Parameters:
entry -
saveFile
public File saveFile(CorpusEntry entry)
update
public void update(CorpusFileEntry entry)
- Parameters:
entry -
read
protected CorpusEntry read(File entryFile)
readFileEntry
protected CorpusFileEntry readFileEntry(File entryFile)
getXsteam
protected com.thoughtworks.xstream.XStream getXsteam()
getRepoDir
public File getRepoDir()
setRepositoryPath
public void setRepositoryPath(String repositoryPath)
Copyright © 2010. All Rights Reserved.