Package net.sf.saxon.lib
Class RawResult
- java.lang.Object
-
- net.sf.saxon.lib.RawResult
-
- All Implemented Interfaces:
Result
public class RawResult extends Object implements 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.- Author:
- Michael H. Kay
-
-
Field Summary
-
Fields inherited from interface javax.xml.transform.Result
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING
-
-
Constructor Summary
Constructors Constructor Description RawResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappend(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 objectStringgetSystemId()Get the system identifier that was set with setSystemId.voidsetSystemId(String systemId)Set the system identifier for this Result.
-
-
-
Method Detail
-
setSystemId
public void setSystemId(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:
setSystemIdin interfaceResult- Parameters:
systemId- The system identifier as a URI string.
-
getSystemId
public String getSystemId()
Get the system identifier that was set with setSystemId.- Specified by:
getSystemIdin interfaceResult- 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
-
-