Class MessageFilesParser
- java.lang.Object
-
- java.nio.file.SimpleFileVisitor<Path>
-
- org.apache.lucene.luke.models.util.twentynewsgroups.MessageFilesParser
-
- All Implemented Interfaces:
FileVisitor<Path>
public class MessageFilesParser extends SimpleFileVisitor<Path>
20 Newsgroups (http://kdd.ics.uci.edu/databases/20newsgroups/20newsgroups.html) message files parser
-
-
Constructor Summary
Constructors Constructor Description MessageFilesParser(Path root)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Message>
parseAll()
FileVisitResult
visitFile(Path file, BasicFileAttributes attr)
-
Methods inherited from class java.nio.file.SimpleFileVisitor
postVisitDirectory, preVisitDirectory, visitFileFailed
-
-
-
-
Constructor Detail
-
MessageFilesParser
public MessageFilesParser(Path root)
-
-
Method Detail
-
visitFile
public FileVisitResult visitFile(Path file, BasicFileAttributes attr)
- Specified by:
visitFile
in interfaceFileVisitor<Path>
- Overrides:
visitFile
in classSimpleFileVisitor<Path>
-
parseAll
public List<Message> parseAll() throws IOException
- Throws:
IOException
-
-