Package | Description |
---|---|
net.didion.jwnl.dictionary.file |
Classes for accessing files that contain dictionary information.
|
net.didion.jwnl.dictionary.file_manager |
Classes used by
FileBackedDictionary to interface with the filesystem. |
net.didion.jwnl.princeton.file |
Implementations of
DictionaryFile used by the various classes of Dictionary to access dictionary files using the naming convention used in Princeton's release of WordNet. |
Modifier and Type | Field and Description |
---|---|
static DictionaryFileType |
DictionaryFileType.DATA |
static DictionaryFileType |
DictionaryFileType.EXCEPTION |
static DictionaryFileType |
DictionaryFileType.INDEX |
Modifier and Type | Method and Description |
---|---|
DictionaryFileType |
AbstractDictionaryFile.getFileType()
The file type associated with this file.
|
DictionaryFileType |
DictionaryCatalog.getFileType() |
DictionaryFileType |
DictionaryFile.getFileType()
The file type associated with this file.
|
Modifier and Type | Method and Description |
---|---|
DictionaryCatalog |
DictionaryCatalogSet.get(DictionaryFileType fileType) |
DictionaryFile |
DictionaryCatalogSet.getDictionaryFile(POS pos,
DictionaryFileType fileType) |
DictionaryFile |
DictionaryFile.newInstance(String path,
POS pos,
DictionaryFileType fileType)
Create a new instance of the dictionary file
|
Constructor and Description |
---|
AbstractDictionaryFile(String path,
POS pos,
DictionaryFileType fileType) |
DictionaryCatalog(String path,
DictionaryFileType fileType,
Class dictionaryFileType) |
Modifier and Type | Method and Description |
---|---|
DictionaryFile |
FileManagerImpl.getFile(POS pos,
DictionaryFileType fileType)
Gets the file from a part of speech and file type (ie data.noun).
|
long |
FileManagerImpl.getFirstLinePointer(POS pos,
DictionaryFileType fileType)
Return the first valid line pointer in the specified file.
|
long |
FileManager.getFirstLinePointer(POS pos,
DictionaryFileType fileType)
Return the first valid line pointer in the specified file.
|
long |
FileManagerImpl.getIndexedLinePointer(POS pos,
DictionaryFileType fileType,
String target)
Get indexed line pointer is typically used to find a word within an index file matching a given part of speech.
|
long |
FileManager.getIndexedLinePointer(POS pos,
DictionaryFileType fileType,
String index)
Search for the line whose first word is index (that is, that begins with
index followed by a space or tab).
|
long |
FileManagerImpl.getMatchingLinePointer(POS pos,
DictionaryFileType fileType,
long offset,
String substring)
Search for a line whose index word contains substring, starting at offset.
|
long |
FileManager.getMatchingLinePointer(POS pos,
DictionaryFileType fileType,
long offset,
String substring)
Search for a line whose index word contains substring, starting at offset.
|
long |
FileManagerImpl.getNextLinePointer(POS pos,
DictionaryFileType fileType,
long offset)
Search for the line following the line that begins at offset.
|
long |
FileManager.getNextLinePointer(POS pos,
DictionaryFileType fileType,
long offset)
Search for the line following the line that begins at offset.
|
long |
FileManagerImpl.getRandomLinePointer(POS pos,
DictionaryFileType fileType)
Return a randomly-chosen line pointer (offset of the beginning of a line).
|
long |
FileManager.getRandomLinePointer(POS pos,
DictionaryFileType index)
Return a randomly-chosen line pointer (offset of the beginning of a line).
|
String |
FileManagerImpl.readLineAt(POS pos,
DictionaryFileType fileType,
long offset)
Read the line that begins at file offset offset.
|
String |
FileManager.readLineAt(POS pos,
DictionaryFileType fileType,
long offset)
Read the line that begins at file offset offset.
|
Modifier and Type | Method and Description |
---|---|
DictionaryFile |
PrincetonChannelDictionaryFile.newInstance(String path,
POS pos,
DictionaryFileType fileType) |
DictionaryFile |
PrincetonObjectDictionaryFile.newInstance(String path,
POS pos,
DictionaryFileType fileType) |
DictionaryFile |
PrincetonRandomAccessDictionaryFile.newInstance(String path,
POS pos,
DictionaryFileType fileType) |
Constructor and Description |
---|
AbstractPrincetonDictionaryFile(String path,
POS pos,
DictionaryFileType fileType) |
AbstractPrincetonRandomAccessDictionaryFile(String path,
POS pos,
DictionaryFileType fileType) |
PrincetonChannelDictionaryFile(String path,
POS pos,
DictionaryFileType fileType) |
PrincetonObjectDictionaryFile(String path,
POS pos,
DictionaryFileType fileType) |
PrincetonRandomAccessDictionaryFile(String path,
POS pos,
DictionaryFileType fileType) |
PrincetonRandomAccessDictionaryFile(String path,
POS pos,
DictionaryFileType fileType,
String permissions) |
Copyright © 2017. All rights reserved.