public class TrieSource extends Object implements Disposable
Must be disposed to ensure that the readers are closed and the file free for other uses. Does not need to be disposed if a byte array is used.
| Modifier and Type | Field and Description |
|---|---|
private FileInputStream |
fileInputStream |
| Constructor and Description |
|---|
TrieSource(String filename) |
| Modifier and Type | Method and Description |
|---|---|
TrieReader |
createReader()
Creates a new reader and stores a reference to it.
|
void |
dispose() |
private final FileInputStream fileInputStream
public TrieSource(String filename) throws FileNotFoundException
FileNotFoundExceptionpublic void dispose()
dispose in interface Disposablepublic TrieReader createReader() throws IOException
IOException