Class PatternParser
A XMLReader document handler to read and parse hyphenation patterns from a XML file.
LUCENENET: This class has been refactored from its Java counterpart to use XmlReader rather than a SAX parser.
Inheritance
Inherited Members
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
[Serializable]
public class PatternParser
Constructors
Name | Description |
---|---|
PatternParser() | |
PatternParser(IPatternConsumer) |
Properties
Name | Description |
---|---|
Consumer |
Methods
Name | Description |
---|---|
Characters(Char[], Int32, Int32) | Receive notification of character data. The Parser will call this method to report each chunk of character data. Parsers may return all contiguous character data in a single chunk, or they may split it into several chunks; however, all of the characters in any single event must come from the same external entity so that the Locator provides useful information. The application must not attempt to read from the array outside of the specified range. |
EndElement(String, String, String) | Receive notification of the end of an element. The parser will invoke this method at the end of every element in the XML document; there will be a corresponding StartElement(String, String, String, IDictionary<String, String>) event for every EndElement(String, String, String) event (even when the element is empty). |
GetExceptionWord<T1>(IList<T1>) | |
GetInterletterValues(String) | |
GetPattern(String) | |
NormalizeException<T1>(IList<T1>) | |
Parse(FileInfo) | Parses a hyphenation pattern file. |
Parse(FileInfo, Encoding) | Parses a hyphenation pattern file. |
Parse(Stream) | Parses a hyphenation pattern file. |
Parse(String) | Parses a hyphenation pattern file. |
Parse(String, Encoding) | Parses a hyphenation pattern file. |
Parse(XmlReader) | Parses a hyphenation pattern file. |
ReadToken(StringBuilder) | |
StartElement(String, String, String, IDictionary<String, String>) | Receive notification of the beginning of an element. The Parser will invoke this method at the beginning of every element in the XML document; there will be a corresponding EndElement(String, String, String) event for every StartElement(String, String, String, IDictionary<String, String>) event (even when the element is empty). All of the element's content will be reported, in order, before the corresponding endElement event. |