Method Parse
Parse(String)
Parses a hyphenation pattern file.
Declaration
public virtual void Parse(string path)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | The complete file path to be read. |
Exceptions
Type | Condition |
---|---|
System.IO.IOException | In case of an exception while parsing |
Parse(String, Encoding)
Parses a hyphenation pattern file.
Declaration
public virtual void Parse(string path, Encoding encoding)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | The complete file path to be read. |
System.Text.Encoding | encoding | The character encoding to use |
Exceptions
Type | Condition |
---|---|
System.IO.IOException | In case of an exception while parsing |
Parse(FileInfo)
Parses a hyphenation pattern file.
Declaration
public virtual void Parse(FileInfo file)
Parameters
Type | Name | Description |
---|---|---|
System.IO.FileInfo | file | a System.IO.FileInfo object representing the file |
Exceptions
Type | Condition |
---|---|
System.IO.IOException | In case of an exception while parsing |
Parse(FileInfo, Encoding)
Parses a hyphenation pattern file.
Declaration
public virtual void Parse(FileInfo file, Encoding encoding)
Parameters
Type | Name | Description |
---|---|---|
System.IO.FileInfo | file | a System.IO.FileInfo object representing the file |
System.Text.Encoding | encoding | The character encoding to use |
Exceptions
Type | Condition |
---|---|
System.IO.IOException | In case of an exception while parsing |
Parse(Stream)
Parses a hyphenation pattern file.
Declaration
public virtual void Parse(Stream xmlStream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | xmlStream | The stream containing the XML data. The PatternParser scans the first bytes of the stream looking for a byte order mark or other sign of encoding. When encoding is determined, the encoding is used to continue reading the stream, and processing continues parsing the input as a stream of (Unicode) characters. |
Exceptions
Type | Condition |
---|---|
System.IO.IOException | In case of an exception while parsing |
Parse(XmlReader)
Parses a hyphenation pattern file.
Declaration
public virtual void Parse(XmlReader source)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlReader | source | System.Xml.XmlReader input source for the file |
Exceptions
Type | Condition |
---|---|
System.IO.IOException | In case of an exception while parsing |