javax.xml.transform.Result ) that Stax2
org.codehaus.stax2.XMLInputFactory2 implementations should support.
Note about usage by the parser factory implementations: the expectation
is that at least one of methods constructWriter and
constructOutputStream will succeed, but not necessarily both.
This generally depends on type of resource being represented: for example,
if the source is a StringBuffer, it is most naturally
represent via Writer. For File-backed results, on the other hand,
an OutputStream is the most natural access method.
Other things to note about using result Writers and
OutputStreams:
Writer and
OutputStream instances requested. That is, caller owns
these accessor objects.
| Modifier and Type | Field and Description |
|---|---|
| protected String | |
| protected String | |
| protected String |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract OutputStream | constructOutputStream()
This method creates an |
| public abstract Writer | |
| public String | |
| public String | |
| public String | getSystemId()
Implements javax. |
| public void | |
| public void | |
| public void | setSystemId(String
The system identifier as a URI string. id)Implements javax. |
| mEncoding | back to summary |
|---|---|
| protected String mEncoding | |
| mPublicId | back to summary |
|---|---|
| protected String mPublicId | |
| mSystemId | back to summary |
|---|---|
| protected String mSystemId | |
| Stax2Result | back to summary |
|---|---|
| protected Stax2Result() | |
| constructOutputStream | back to summary |
|---|---|
| public abstract OutputStream constructOutputStream() throws IOException This method creates an | |
| constructWriter | back to summary |
|---|---|
| public abstract Writer constructWriter() throws IOException This method creates a | |
| getEncoding | back to summary |
|---|---|
| public String getEncoding() | |
| getPublicId | back to summary |
|---|---|
| public String getPublicId() | |
| getSystemId | back to summary |
|---|---|
| public String getSystemId() Implements javax. Doc from javax. Get the system identifier that was set with setSystemId. | |
| setEncoding | back to summary |
|---|---|
| public void setEncoding(String enc) | |
| setPublicId | back to summary |
|---|---|
| public void setPublicId(String id) | |
| setSystemId | back to summary |
|---|---|
| public void setSystemId(String id) Implements javax. Doc from javax. Set the system identifier for this Result. If the Result is not to be written to a file, the system identifier is optional. The application may still want to provide one, however, for use in error messages and warnings, or to resolve relative output identifiers. | |