| Package | Description |
|---|---|
| edu.mit.jwi |
Provides the main dictionary interface and a default implementation.
|
| edu.mit.jwi.data |
Provides classes and interfaces for the creation, searching, and interpretation of dictionary data sources.
|
| edu.mit.jwi.item |
Provides classes and interfaces that represent the Wordnet data structures.
|
| Constructor and Description |
|---|
FileIterator(IContentType<T> content) |
FileIterator(IContentType<T> content,
String startKey) |
FileIterator2(IContentType<T> content)
Constructs a new file iterator with the specified content type.
|
FileIterator2(IContentType<T> content,
String startKey)
Constructs a new file iterator with the specified content type and start key.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ContentType<T>
A concrete implementation of the
IContentType interface. |
| Modifier and Type | Method and Description |
|---|---|
IContentType<T> |
IDataSource.getContentType()
Returns the assigned content type of the resource that backs this object.
|
IContentType<T> |
WordnetFile.getContentType() |
static IContentType<ISynset> |
ContentType.getDataContentType(POS pos)
Use this convenience method to retrieve the appropriate
ISynset content type for the specified POS. |
static IContentType<IExceptionEntryProxy> |
ContentType.getExceptionContentType(POS pos)
Use this convenience method to retrieve the appropriate
IExceptionEntryProxy content type for the specified POS. |
static IContentType<IIndexWord> |
ContentType.getIndexContentType(POS pos)
Use this convenience method to retrieve the appropriate
IIndexWord content type for the specified POS. |
<T> IContentType<T> |
IDataProvider.resolveContentType(IDataType<T> dt,
POS pos)
Returns the first content type, if any, that matches the specified data
type and pos object.
|
<T> IContentType<T> |
FileProvider.resolveContentType(IDataType<T> dt,
POS pos) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<IContentType<?>,ILoadableDataSource<?>> |
FileProvider.createSourceMap(List<File> files,
int policy)
Creates the map that contains the content types mapped to the data
sources.
|
Set<? extends IContentType<?>> |
IDataProvider.getTypes()
Returns a set containing all the content types this provider looks for at
the resource location.
|
Set<? extends IContentType<?>> |
FileProvider.getTypes() |
| Modifier and Type | Method and Description |
|---|---|
protected <T> ILoadableDataSource<T> |
FileProvider.createBinarySearch(File file,
IContentType<T> type)
Creates a binary search data source for the specified type, using the
specified file.
|
protected <T> ILoadableDataSource<T> |
FileProvider.createDataSource(File file,
IContentType<T> type,
int policy)
Creates the actual data source implementations.
|
protected <T> ILoadableDataSource<T> |
FileProvider.createDirectAccess(File file,
IContentType<T> type)
Creates a direct access data source for the specified type, using the
specified file.
|
<T> IDataSource<T> |
IDataProvider.getSource(IContentType<T> type)
Returns a data source object for the specified content type, if one is
available; otherwise returns
null. |
<T> ILoadableDataSource<T> |
FileProvider.getSource(IContentType<T> type) |
| Constructor and Description |
|---|
BinarySearchWordnetFile(File file,
IContentType<T> contentType)
Constructs a new binary search wordnet file, on the specified file with
the specified content type.
|
DirectAccessWordnetFile(File file,
IContentType<T> contentType)
Constructs a new direct access wordnet file, on the specified file with
the specified content type.
|
WordnetFile(File file,
IContentType<T> contentType)
Constructs an instance of this class backed by the specified java
File object, with the specified content type. |
| Constructor and Description |
|---|
FileProvider(File file,
int loadPolicy,
Collection<? extends IContentType<?>> types)
Constructs the file provider pointing to the resource indicated by the
path, with the specified load policy, looking for the specified content
type.s
|
FileProvider(URL url,
int loadPolicy,
Collection<? extends IContentType<?>> types)
Constructs the file provider pointing to the resource indicated by the
path, with the specified load policy, looking for the specified content
type.s
|
| Modifier and Type | Method and Description |
|---|---|
static Version |
Version.extractVersion(IContentType<?> type,
ByteBuffer buffer)
Extracts a version object from a byte buffer that contains data with the
specified content type.
|
Copyright © 2018. All rights reserved.