public static class AbstractResourceCollection.InputDetails
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
byte[] |
binaryContent
The binary content of the resource
|
java.lang.String |
characterContent
The character content of the resource
|
java.lang.String |
contentType
The media type of the resource
|
java.lang.String |
encoding
The encoding of the resource (if it is text, represented in binary)
|
int |
onError
Action to be taken in the event of an error, for example
URIQueryParameters#ON_ERROR_FAIL,
URIQueryParameters#ON_ERROR_WARNING, or URIQueryParameters#ON_ERROR_IGNORE |
ParseOptions |
parseOptions
Options for parsing the content of an XML resource
|
java.lang.String |
resourceUri
The URI of the resource
|
| Constructor and Description |
|---|
InputDetails() |
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
getInputStream()
Get an input stream that delivers the binary content of the resource
|
byte[] |
obtainBinaryContent()
Get the binary content of the resource, either as stored,
or by encoding the character content, or by reading the input stream
|
java.lang.String |
obtainCharacterContent()
Get the character content of the resource, either as stored, or by
reading and decoding the input stream
|
public java.lang.String resourceUri
public byte[] binaryContent
public java.lang.String characterContent
public java.lang.String contentType
public java.lang.String encoding
public ParseOptions parseOptions
public int onError
URIQueryParameters#ON_ERROR_FAIL,
URIQueryParameters#ON_ERROR_WARNING, or URIQueryParameters#ON_ERROR_IGNOREpublic java.io.InputStream getInputStream()
throws java.io.IOException
java.io.IOException - if the input cannot be readpublic byte[] obtainBinaryContent()
throws XPathException
XPathException - if the binary content cannot be obtainedpublic java.lang.String obtainCharacterContent()
throws XPathException
XPathException - in the event of a failureCopyright (c) 2004-2021 Saxonica Limited. All rights reserved.