javax.xml.transform.stream
public class StreamSource extends Object implements Source
Modifier and Type | Field and Description |
---|---|
static String |
FEATURE
Factory feature indicating that stream sources are supported.
|
Constructor and Description |
---|
StreamSource()
Default constructor.
|
StreamSource(File file)
Constructor with a system ID specified as a File reference.
|
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.
|
Modifier and Type | Method and Description |
---|---|
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(File f)
Sets the system ID using a File reference.
|
void |
setSystemId(String systemId)
Sets the system ID for this source.
|
public static final String FEATURE
public StreamSource()
public StreamSource(InputStream stream)
public StreamSource(InputStream stream, String systemId)
public StreamSource(Reader reader)
public StreamSource(Reader reader, String systemId)
public StreamSource(String systemId)
public StreamSource(File file)
public void setInputStream(InputStream stream)
public InputStream getInputStream()
public void setReader(Reader reader)
public void setPublicId(String publicId)
public String getPublicId()
public void setSystemId(String systemId)
setSystemId
in interface Source
systemId
- the system ID URIpublic String getSystemId()
getSystemId
in interface Source
public void setSystemId(File f)