Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class Dictionary

    In-memory structure for the dictionary (.dic) and affix (.aff) data of a hunspell dictionary.

    Inheritance
    object
    Dictionary
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Analysis.Hunspell
    Assembly: Lucene.Net.Analysis.Common.dll
    Syntax
    public class Dictionary

    Constructors

    Dictionary(Stream, IList<Stream>, bool)

    Creates a new Dictionary containing the information read from the provided Streams to hunspell affix and dictionary files. You have to dispose the provided Streams yourself.

    Declaration
    public Dictionary(Stream affix, IList<Stream> dictionaries, bool ignoreCase)
    Parameters
    Type Name Description
    Stream affix

    Stream for reading the hunspell affix file (won't be disposed).

    IList<Stream> dictionaries

    Stream for reading the hunspell dictionary files (won't be disposed).

    bool ignoreCase

    ignore case?

    Exceptions
    Type Condition
    IOException

    Can be thrown while reading from the Streams

    Exception

    Can be thrown if the content of the files does not meet expected formats

    Dictionary(Stream, Stream)

    Creates a new Dictionary containing the information read from the provided Streams to hunspell affix and dictionary files. You have to dispose the provided Streams yourself.

    Declaration
    public Dictionary(Stream affix, Stream dictionary)
    Parameters
    Type Name Description
    Stream affix

    Stream for reading the hunspell affix file (won't be disposed).

    Stream dictionary

    Stream for reading the hunspell dictionary file (won't be disposed).

    Exceptions
    Type Condition
    IOException

    Can be thrown while reading from the Streams

    Exception

    Can be thrown if the content of the files does not meet expected formats

    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.