Method GetHyphenationTree
GetHyphenationTree(String)
Create a hyphenator tree
Declaration
public static HyphenationTree GetHyphenationTree(string hyphenationFilename)
Parameters
Type | Name | Description |
---|---|---|
System.String | hyphenationFilename | the filename of the XML grammar to load |
Returns
Type | Description |
---|---|
HyphenationTree | An object representing the hyphenation patterns |
Exceptions
Type | Condition |
---|---|
System.IO.IOException | If there is a low-level I/O error. |
GetHyphenationTree(String, Encoding)
Create a hyphenator tree
Declaration
public static HyphenationTree GetHyphenationTree(string hyphenationFilename, Encoding encoding)
Parameters
Type | Name | Description |
---|---|---|
System.String | hyphenationFilename | the filename of the XML grammar to load |
System.Text.Encoding | encoding | The character encoding to use |
Returns
Type | Description |
---|---|
HyphenationTree | An object representing the hyphenation patterns |
Exceptions
Type | Condition |
---|---|
System.IO.IOException | If there is a low-level I/O error. |
GetHyphenationTree(FileInfo)
Create a hyphenator tree
Declaration
public static HyphenationTree GetHyphenationTree(FileInfo hyphenationFile)
Parameters
Type | Name | Description |
---|---|---|
System.IO.FileInfo | hyphenationFile | the file of the XML grammar to load |
Returns
Type | Description |
---|---|
HyphenationTree | An object representing the hyphenation patterns |
Exceptions
Type | Condition |
---|---|
System.IO.IOException | If there is a low-level I/O error. |
GetHyphenationTree(FileInfo, Encoding)
Create a hyphenator tree
Declaration
public static HyphenationTree GetHyphenationTree(FileInfo hyphenationFile, Encoding encoding)
Parameters
Type | Name | Description |
---|---|---|
System.IO.FileInfo | hyphenationFile | the file of the XML grammar to load |
System.Text.Encoding | encoding | The character encoding to use |
Returns
Type | Description |
---|---|
HyphenationTree | An object representing the hyphenation patterns |
Exceptions
Type | Condition |
---|---|
System.IO.IOException | If there is a low-level I/O error. |
GetHyphenationTree(Stream)
Create a hyphenator tree
Declaration
public static HyphenationTree GetHyphenationTree(Stream hyphenationSource)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | hyphenationSource | the InputSource pointing to the XML grammar |
Returns
Type | Description |
---|---|
HyphenationTree | An object representing the hyphenation patterns |
Exceptions
Type | Condition |
---|---|
System.IO.IOException | If there is a low-level I/O error. |
GetHyphenationTree(Stream, Encoding)
Create a hyphenator tree
Declaration
public static HyphenationTree GetHyphenationTree(Stream hyphenationSource, Encoding encoding)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | hyphenationSource | the InputSource pointing to the XML grammar |
System.Text.Encoding | encoding | The character encoding to use |
Returns
Type | Description |
---|---|
HyphenationTree | An object representing the hyphenation patterns |
Exceptions
Type | Condition |
---|---|
System.IO.IOException | If there is a low-level I/O error. |