StreamSource

public class StreamSource
extends Object implements Source

java.lang.Object
   ↳ javax.xml.transform.stream.StreamSource


Acts as an holder for a transformation Source in the form of a stream of XML markup.

Note: Due to their internal use of either a Reader or InputStream instance, StreamSource instances may only be used once.

Summary

Constants

String FEATURE

If TransformerFactory.getFeature(String) returns true when passed this value as an argument, the Transformer supports Source input of this type.

Public constructors

StreamSource()

Zero-argument default constructor.

StreamSource(File f)

Construct a StreamSource from a File.

StreamSource(InputStream inputStream)

Construct a StreamSource from a byte stream.

StreamSource(InputStream inputStream, String systemId)

Construct a StreamSource from a byte stream.

StreamSource(Reader reader)

Construct a StreamSource from a character reader.

StreamSource(Reader reader