javax.xml.transform.stream
public class StreamSource extends Object implements Source
| Field Summary | |
|---|---|
| static String | FEATURE
Factory feature indicating that stream sources are supported. |
| Constructor Summary | |
|---|---|
| StreamSource()
Default constructor. | |
| StreamSource(InputStream stream)
Constructor with an input stream. | |
| StreamSource(InputStream stream, String systemId)
Constructor with an input stream and system ID. | |
| StreamSource(Reader reader)
Constructor with a reader.
| |
| StreamSource(Reader reader, String systemId)
Constructor with a reader and system ID.
| |
| StreamSource(String systemId)
Constructor with a system ID. | |
| StreamSource(File file)
Constructor with a system ID specified as a File reference. | |
| Method Summary | |
|---|---|
| InputStream | getInputStream()
Returns the source input stream. |
| String | getPublicId()
Returns the public ID for this source. |
| Reader | getReader()
Returns the source reader. |
| String | getSystemId()
Returns the system ID for this source. |
| void | setInputStream(InputStream stream)
Sets the source input stream. |
| void | setPublicId(String publicId)
Sets the public ID for this source. |
| void | setReader(Reader reader)
Sets the source reader.
|
| void | setSystemId(String systemId)
Sets the system ID for this source.
|
| void | setSystemId(File f)
Sets the system ID using a File reference. |