public class TrieSource extends Object implements Closeable
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.
| Constructor and Description |
|---|
TrieSource(String filename,
boolean isTempFile) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
TrieReader |
createReader()
Creates a new reader and stores a reference to it.
|
public TrieSource(String filename, boolean isTempFile) throws FileNotFoundException
FileNotFoundExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseablepublic TrieReader createReader() throws IOException
IOException - indicates an I/O exception occurredCopyright © 2015 51Degrees. All rights reserved.