Collection<File> documents = FileUtils.listFiles(aInputDir, new String[] { "txt" }, true);
for (File document : documents) {
BufferedReader reader = new BufferedReader(new FileReader(document));
sspace.processDocument(reader);
}
int dimensions = Math.min(documents.size(), aMaxDimensions <= 0 ? 300 : aMaxDimensions);
Properties props = new Properties();