T - the type of object represented in this data resourcepublic class DirectAccessWordnetFile<T> extends WordnetFile<T>
| Modifier and Type | Class and Description |
|---|---|
class |
DirectAccessWordnetFile.DirectLineIterator
Used to iterate over lines in a file.
|
WordnetFile.LineIteratorIHasLifecycle.LifecycleState, IHasLifecycle.ObjectClosedException, IHasLifecycle.ObjectOpenException| Constructor and Description |
|---|
DirectAccessWordnetFile(File file,
IContentType<T> contentType)
Constructs a new direct access wordnet file, on the specified file with
the specified content type.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getLine(String key)
Returns the line in the resource contains the data indexed by the
specified key.
|
WordnetFile.LineIterator |
makeIterator(ByteBuffer buffer,
String key)
Constructs an iterator that can be used to iterate over the specified
ByteBuffer, starting from the specified key. |
close, equals, getBuffer, getContentType, getFile, getLine, getLine, getName, getVersion, hashCode, isLoaded, isOpen, iterator, iterator, load, load, open, rewindToLineStartclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic DirectAccessWordnetFile(File file, IContentType<T> contentType)
file - the file which backs this wordnet file; may not be
nullcontentType - the content type for this file; may not be null{@link - NullPointerException} if either the file or content type
is nullpublic String getLine(String key)
IDataSourcenullkey - the key which indexes the desired datapublic WordnetFile.LineIterator makeIterator(ByteBuffer buffer, String key)
WordnetFileByteBuffer, starting from the specified key.makeIterator in class WordnetFile<T>buffer - the buffer over which the iterator will iterate, should not be
nullkey - the key at which the iterator should begin, should not be
nullByteBufferCopyright © 2018. All rights reserved.