Class TypedStreamSource

  • All Implemented Interfaces:
    javax.xml.transform.Source

    public class TypedStreamSource
    extends javax.xml.transform.stream.StreamSource
    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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getContentType()
      Get the content type
      void setContentType​(java.lang.String contentType)
      Set the content type
      • Methods inherited from class javax.xml.transform.stream.StreamSource

        getInputStream, getPublicId, getReader, getSystemId, isEmpty, setInputStream, setPublicId, setReader, setSystemId, setSystemId
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TypedStreamSource

        public TypedStreamSource()
    • Method Detail

      • setContentType

        public void setContentType​(java.lang.String contentType)
        Set the content type
        Parameters:
        contentType - the content type, in the format of the HTTP content type header
      • getContentType

        public java.lang.String getContentType()
        Get the content type
        Returns:
        contentType the content type, in the format of the HTTP content type header; or null if not known