Package org.xmlresolver
Class ResolvedResourceImpl
java.lang.Object
org.xmlresolver.ResolvedResource
org.xmlresolver.ResolvedResourceImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final InputStreamprivate final URIprivate final URI -
Constructor Summary
ConstructorsConstructorDescriptionResolvedResourceImpl(URI resolvedURI, URI localURI, InputStream stream, String contentType) -
Method Summary
Modifier and TypeMethodDescriptionThe content type of the resource.The input stream.The local URI.The resolved URI.
-
Field Details
-
resolvedURI
-
localURI
-
inputStream
-
contentType
-
-
Constructor Details
-
ResolvedResourceImpl
-
-
Method Details
-
getResolvedURI
Description copied from class:ResolvedResourceThe resolved URI.This is the URI that should be reported as the resolved URI.
- Specified by:
getResolvedURIin classResolvedResource- Returns:
- The resolved URI.
-
getLocalURI
Description copied from class:ResolvedResourceThe local URI.This is the URI that was used to retrieve the resource (to open the input stream). This is usually, but not necessarily always, the same as the resolved URI.
- Specified by:
getLocalURIin classResolvedResource- Returns:
- The local URI.
-
getInputStream
Description copied from class:ResolvedResourceThe input stream.This is the input stream containing the resolved resource. This may return null, in which case it is the application's responsibily to access the resource through its resolved URI.
- Specified by:
getInputStreamin classResolvedResource- Returns:
- The input stream that will return the content of the resolved resource.
-
getContentType
Description copied from class:ResolvedResourceThe content type of the resource.If the resolver knows the content type of the resource (for example
application/xml), it will be provided here.- Specified by:
getContentTypein classResolvedResource- Returns:
- The content type, possibly null.
-