StreamSource

public class StreamSource extends Object
implements Source

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.

Constant Summary

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

Public Constructor Summary

StreamSource()

Zero-argument default constructor.

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, String systemId)
Construct a StreamSource from a character reader.
StreamSource(String systemId)
Construct a StreamSource from a URL.
StreamSource(File f)
Construct a StreamSource from a File.

Public Method Summary