Class DOMInputStreamProvider

  • All Implemented Interfaces:
    com.helger.commons.io.IHasInputStream, com.helger.commons.io.IHasInputStreamAndReader, com.helger.commons.io.IHasReader, Serializable

    public class DOMInputStreamProvider
    extends com.helger.commons.io.streamprovider.StringInputStreamProvider
    A special input stream provider that takes an existing Node and converts it to a byte array.
    Author:
    Philip Helger
    See Also:
    Serialized Form
    • Method Summary

      • Methods inherited from class com.helger.commons.io.streamprovider.StringInputStreamProvider

        equals, getCharset, getData, getInputStream, getReader, getReader, hashCode, isReadMultiple, toString
      • Methods inherited from interface com.helger.commons.io.IHasInputStream

        getBufferedInputStream
      • Methods inherited from interface com.helger.commons.io.IHasInputStreamAndReader

        getBufferedReader
      • Methods inherited from interface com.helger.commons.io.IHasReader

        getBufferedReader
    • Constructor Detail

      • DOMInputStreamProvider

        public DOMInputStreamProvider​(@Nonnull
                                      Node aNode)
        Constructor for W3C nodes using the default XML charset.
        Parameters:
        aNode - The node to be streamed. May not be null.
      • DOMInputStreamProvider

        public DOMInputStreamProvider​(@Nonnull
                                      Node aNode,
                                      @Nonnull
                                      Charset aCharset)
        Constructor for W3C nodes.
        Parameters:
        aNode - The node to be streamed. May not be null.
        aCharset - The charset to use. May not be null.
      • DOMInputStreamProvider

        public DOMInputStreamProvider​(@Nonnull
                                      Node aNode,
                                      @Nonnull
                                      IXMLWriterSettings aSettings)
        Constructor for W3C nodes.
        Parameters:
        aNode - The node to be streamed. May not be null.
        aSettings - The settings to use. May not be null.