Constructor InputSource
InputSource()
Zero-argument default constructor.
Declaration
public InputSource()
See Also
InputSource(String)
Create a new input source with a system identifier.
Declaration
public InputSource(string systemId)
Parameters
Type | Name | Description |
---|---|---|
System.String | systemId | The system identifier (URI). |
Remarks
Applications may use PublicId to include a public identifier as well, or Encoding to specify the character encoding, if known.
If the system identifier is a URL, it must be fully resolved (it may not be a relative URL).
See Also
InputSource(Stream)
Create a new input source with a byte stream.
Declaration
public InputSource(Stream byteStream)
Parameters
Type | Name | Description |
---|---|---|
Stream | byteStream | The raw byte stream containing the document. |
Remarks
Application writers should use SystemId to provide a base for resolving relative URIs, may use PublicId to include a public identifier, and may use Encoding to specify the object's character encoding.
See Also
InputSource(TextReader)
Create a new input source with a character stream.
Declaration
public InputSource(TextReader characterStream)
Parameters
Type | Name | Description |
---|---|---|
TextReader | characterStream |
Remarks
Application writers should use SystemId to provide a base for resolving relative URIs, and may use PublicId to include a public identifier.
The character stream shall not include a byte order mark.