Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class PlainTextDictionary

    Dictionary represented by a text file.

    Format allowed: 1 word per line:

    word1

    word2

    word3

    Inheritance
    object
    PlainTextDictionary
    Implements
    IDictionary
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Search.Spell
    Assembly: Lucene.Net.Suggest.dll
    Syntax
    public class PlainTextDictionary : IDictionary

    Constructors

    PlainTextDictionary(FileInfo)

    Creates a dictionary based on a File.

    NOTE: content is treated as UTF-8

    Declaration
    public PlainTextDictionary(FileInfo file)
    Parameters
    Type Name Description
    FileInfo file

    PlainTextDictionary(Stream)

    Creates a dictionary based on an inputstream.

    NOTE: content is treated as UTF-8

    Declaration
    public PlainTextDictionary(Stream dictFile)
    Parameters
    Type Name Description
    Stream dictFile

    PlainTextDictionary(TextReader)

    Creates a dictionary based on a reader.

    Declaration
    public PlainTextDictionary(TextReader reader)
    Parameters
    Type Name Description
    TextReader reader

    Methods

    GetEntryEnumerator()

    Returns an enumerator over all the entries.

    Declaration
    public virtual IInputEnumerator GetEntryEnumerator()
    Returns
    Type Description
    IInputEnumerator

    Enumerator

    Implements

    IDictionary
    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.