Package net.sf.saxon.resource
Class TypedStreamSource
java.lang.Object
javax.xml.transform.stream.StreamSource
net.sf.saxon.resource.TypedStreamSource
- All Implemented Interfaces:
Source
A
StreamSource
augmented with ContentType information,
which potentially provides the media type and encoding-
Field Summary
Fields inherited from class javax.xml.transform.stream.StreamSource
FEATURE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the content typevoid
setContentType
(String contentType) Set the content typeMethods inherited from class javax.xml.transform.stream.StreamSource
getInputStream, getPublicId, getReader, getSystemId, isEmpty, setInputStream, setPublicId, setReader, setSystemId, setSystemId
-
Constructor Details
-
TypedStreamSource
public TypedStreamSource()
-
-
Method Details
-
setContentType
Set the content type- Parameters:
contentType
- the content type, in the format of the HTTP content type header
-
getContentType
Get the content type- Returns:
- contentType the content type, in the format of the HTTP content type header; or null if not known
-