|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.xml.transform.stream.StreamSource
public class StreamSource
Specifies a stream from which to read the source XML data.
Field Summary | |
---|---|
static String |
FEATURE
Factory feature indicating that stream sources are supported. |
Constructor Summary | |
---|---|
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. |
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(File f)
Sets the system ID using a File reference. |
void |
setSystemId(String systemId)
Sets the system ID for this source. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String FEATURE
Constructor Detail |
---|
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)
Method Detail |
---|
public void setInputStream(InputStream stream)
public InputStream getInputStream()
public void setReader(Reader reader)
public Reader getReader()
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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |