|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectopennlp.tools.formats.DirectorySampleStream
public class DirectorySampleStream
The directory sample stream scans a directory (recursively) for plain text files and outputs each file as a String object.
| Constructor Summary | |
|---|---|
DirectorySampleStream(File[] dirs,
FileFilter fileFilter,
boolean recursive)
|
|
DirectorySampleStream(File dir,
FileFilter fileFilter,
boolean recursive)
|
|
| Method Summary | |
|---|---|
void |
close()
Closes the ObjectStream and releases all allocated
resources. |
File |
read()
Returns the next object. |
void |
reset()
Repositions the stream at the beginning and the previously seen object sequence will be repeated exactly. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DirectorySampleStream(File[] dirs,
FileFilter fileFilter,
boolean recursive)
public DirectorySampleStream(File dir,
FileFilter fileFilter,
boolean recursive)
| Method Detail |
|---|
public File read()
throws IOException
ObjectStream
read in interface ObjectStream<File>IOExceptionpublic void reset()
ObjectStream
reset in interface ObjectStream<File>
public void close()
throws IOException
ObjectStreamObjectStream and releases all allocated
resources. After close was called its not allowed to call
read or reset.
close in interface ObjectStream<File>IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||