Package net.sf.saxon.lib
Class RawResult
- java.lang.Object
-
- net.sf.saxon.lib.RawResult
-
- All Implemented Interfaces:
javax.xml.transform.Result
public class RawResult extends java.lang.Object implements javax.xml.transform.Result
This class is an implementation of the JAXP Result interface. It can be used to indicate that the output of a transformation (either the principal result, or a secondary result) should be delivered in "raw" form, that is, without building a tree (equivalently, without performing "sequence normalization"). Once output has been written to a RawResult, it is available to the caller in the form of aSequence
.
-
-
Constructor Summary
Constructors Constructor Description RawResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
append(Item item)
Method intended for internal use to append an item to the resultSequence
getResultSequence()
On completion, get the sequence that has been written to this result objectjava.lang.String
getSystemId()
Get the system identifier that was set with setSystemId.void
setSystemId(java.lang.String systemId)
Set the system identifier for this Result.
-
-
-
Method Detail
-
setSystemId
public void setSystemId(java.lang.String systemId)
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.
- Specified by:
setSystemId
in interfacejavax.xml.transform.Result
- Parameters:
systemId
- The system identifier as a URI string.
-
getSystemId
public java.lang.String getSystemId()
Get the system identifier that was set with setSystemId.- Specified by:
getSystemId
in interfacejavax.xml.transform.Result
- Returns:
- The system identifier that was set with setSystemId, or null if setSystemId was not called.
-
append
public void append(Item item)
Method intended for internal use to append an item to the result
-
getResultSequence
public Sequence getResultSequence()
On completion, get the sequence that has been written to this result object
-
-