public class StringSource
extends java.lang.Object
implements javax.xml.transform.Source
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FEATURE
The feature name to tell if the transformer can handle stream input.
|
Constructor and Description |
---|
StringSource()
Zero-arg constructor.
|
StringSource(java.lang.String source)
Create a StringSource with a given string.
|
StringSource(java.lang.String source,
java.lang.String systemId)
Create a StringSource with a given string and systemId.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPublicId()
Returns the public identifier (URL).
|
java.lang.String |
getString()
Returns the source string.
|
java.lang.String |
getSystemId()
Returns the system identifier (URL).
|
void |
setPublicId(java.lang.String publicId)
Sets the public identifier (URL).
|
void |
setString(java.lang.String is)
Sets the source string stream.
|
void |
setSystemId(java.io.File file)
Sets the system identifier (URL) from a File.
|
void |
setSystemId(java.lang.String systemId)
Sets the system identifier (URL).
|
public static final java.lang.String FEATURE
public StringSource()
public StringSource(java.lang.String source)
source
- the source string.public StringSource(java.lang.String source, java.lang.String systemId)
source
- the source string.systemId
- the URL representing the string location.public java.lang.String getString()
public void setString(java.lang.String is)
public java.lang.String getSystemId()
getSystemId
in interface javax.xml.transform.Source
public void setSystemId(java.lang.String systemId)
setSystemId
in interface javax.xml.transform.Source
public void setSystemId(java.io.File file)
public java.lang.String getPublicId()
public void setPublicId(java.lang.String publicId)