Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
javax.xml.transform.stream.StreamSource
Field Summary | |
static String |
|
Constructor Summary | |
| |
| |
| |
| |
| |
| |
|
Method Summary | |
InputStream |
|
String |
|
Reader |
|
String |
|
void |
|
void |
|
void |
|
void |
|
void |
|
public static final String FEATURE
Factory feature indicating that stream sources are supported.
public StreamSource()
Default constructor.
public StreamSource(File file)
Constructor with a system ID specified as a File reference.
public StreamSource(InputStream stream)
Constructor with an input stream.
public StreamSource(InputStream stream, String systemId)
Constructor with an input stream and system ID.
public StreamSource(Reader reader)
Constructor with a reader. Prefer an input stream to a reader, so that the parser can use the character encoding specified in the XML.
public StreamSource(Reader reader, String systemId)
Constructor with a reader and system ID. Prefer an input stream to a reader, so that the parser can use the character encoding specified in the XML.
public StreamSource(String systemId)
Constructor with a system ID.
public InputStream getInputStream()
Returns the source input stream.
public String getPublicId()
Returns the public ID for this source.
public Reader getReader()
Returns the source reader.
public String getSystemId()
Returns the system ID for this source.
- Specified by:
- getSystemId in interface Source
public void setInputStream(InputStream stream)
Sets the source input stream.
public void setPublicId(String publicId)
Sets the public ID for this source.
public void setReader(Reader reader)
Sets the source reader. Prefer an input stream to a reader, so that the parser can use the character encoding specified in the XML.
public void setSystemId(File f)
Sets the system ID using a File reference.