|
|||||||||
| Home >> All >> javax >> xml >> transform >> [ stream overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
javax.xml.transform.stream
Class StreamSource

java.lang.Objectjavax.xml.transform.stream.StreamSource
- All Implemented Interfaces:
- javax.xml.transform.Source
- public class StreamSource
- extends java.lang.Object
- implements javax.xml.transform.Source
- extends java.lang.Object
Specifies a stream from which to read the source XML data.
| Field Summary | |
static java.lang.String |
FEATURE
Factory feature indicating that stream sources are supported. |
private java.io.InputStream |
inputStream
|
private java.lang.String |
publicId
|
private java.io.Reader |
reader
|
private java.lang.String |
systemId
|
| Constructor Summary | |
StreamSource()
Default constructor. |
|
StreamSource(java.io.File file)
Constructor with a system ID specified as a File reference. |
|
StreamSource(java.io.InputStream stream)
Constructor with an input stream. |
|
StreamSource(java.io.InputStream stream,
java.lang.String systemId)
Constructor with an input stream and system ID. |
|
StreamSource(java.io.Reader reader)
Constructor with a reader. |
|
StreamSource(java.io.Reader reader,
java.lang.String systemId)
Constructor with a reader and system ID. |
|
StreamSource(java.lang.String systemId)
Constructor with a system ID. |
|
| Method Summary | |
java.io.InputStream |
getInputStream()
Returns the source input stream. |
java.lang.String |
getPublicId()
Returns the public ID for this source. |
java.io.Reader |
getReader()
Returns the source reader. |
java.lang.String |
getSystemId()
Returns the system ID for this source. |
void |
setInputStream(java.io.InputStream stream)
Sets the source input stream. |
void |
setPublicId(java.lang.String publicId)
Sets the public ID for this source. |
void |
setReader(java.io.Reader reader)
Sets the source reader. |
void |
setSystemId(java.io.File f)
Sets the system ID using a File reference. |
void |
setSystemId(java.lang.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 |
FEATURE
public static final java.lang.String FEATURE
- Factory feature indicating that stream sources are supported.
- See Also:
- Constant Field Values
publicId
private java.lang.String publicId
systemId
private java.lang.String systemId
inputStream
private java.io.InputStream inputStream
reader
private java.io.Reader reader
| Constructor Detail |
StreamSource
public StreamSource()
- Default constructor.
StreamSource
public StreamSource(java.io.InputStream stream)
- Constructor with an input stream.
StreamSource
public StreamSource(java.io.InputStream stream, java.lang.String systemId)
- Constructor with an input stream and system ID.
StreamSource
public StreamSource(java.io.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.
StreamSource
public StreamSource(java.io.Reader reader, java.lang.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.
StreamSource
public StreamSource(java.lang.String systemId)
- Constructor with a system ID.
StreamSource
public StreamSource(java.io.File file)
- Constructor with a system ID specified as a File reference.
| Method Detail |
setInputStream
public void setInputStream(java.io.InputStream stream)
- Sets the source input stream.
getInputStream
public java.io.InputStream getInputStream()
- Returns the source input stream.
setReader
public void setReader(java.io.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.
getReader
public java.io.Reader getReader()
- Returns the source reader.
setPublicId
public void setPublicId(java.lang.String publicId)
- Sets the public ID for this source.
getPublicId
public java.lang.String getPublicId()
- Returns the public ID for this source.
setSystemId
public void setSystemId(java.lang.String systemId)
- Sets the system ID for this source.
If the input stream and reader are absent, the system ID will be used
as a readable URL to locate the source data.
- Specified by:
setSystemIdin interfacejavax.xml.transform.Source
getSystemId
public java.lang.String getSystemId()
- Returns the system ID for this source.
- Specified by:
getSystemIdin interfacejavax.xml.transform.Source
setSystemId
public void setSystemId(java.io.File f)
- Sets the system ID using a File reference.
|
|||||||||
| Home >> All >> javax >> xml >> transform >> [ stream overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
javax.xml.transform.stream.StreamSource