Saxon.Api
Class BinaryResource
-
public class BinaryResource
- implements IResource
An implementation of IResource that represents plain text
Constructor Summary |
|
|---|---|
| BinaryResource (Byte[] content, Uri systemId)
Create a |
|
Property Summary |
|
|---|---|
| string | ContentType
The content type of the resource: always |
| Stream | InputStream
Get a |
| Uri | ResourceUri A URI that identifies this resource |
Method Summary |
|
|---|---|
| XdmItem | GetXdmItem () Return the content of the resource as an item |
Property Detail
ContentType
The content type of the resource: always application/binary
InputStream
Get a Stream for reading the content of this resource in binary.
If an input stream is available, it is returned.
If a reader is available, or if the string content is available,
then the content is read and a MemoryStream is returned delivering the content
in UTF-8 encoding.
Return the content of the resource as an item
Returns:
XdmAtomicValueof typexs:stringholding the content of the resource