|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.event.Sender
public class Sender
Sender is a helper class that sends events to a Receiver from any kind of Source object
Constructor Summary | |
---|---|
Sender(PipelineConfiguration pipe)
Create a Sender |
Method Summary | |
---|---|
static void |
configureParser(XMLReader parser)
Configure a SAX parser to ensure it has the correct namesapce properties set |
PipelineConfiguration |
getPipelineConfiguration()
|
Receiver |
makeValidator(Receiver receiver,
String systemId,
ParseOptions options)
|
void |
send(Source source,
Receiver receiver,
ParseOptions options)
Send the contents of a Source to a Receiver. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Sender(PipelineConfiguration pipe)
pipe
- the pipeline configurationMethod Detail |
---|
public void send(Source source, Receiver receiver, ParseOptions options) throws XPathException
source
- the source to be copied. Note that if the Source contains an InputStream
or Reader then it will be left open, unless it is an AugmentedSource with the pleaseCloseAfterUse
flag set. On the other hand, if it contains a URI that needs to be dereferenced to obtain
an InputStream, then the InputStream will be closed after use.receiver
- the destination to which it is to be copiedoptions
- Parse options. If source is an AugmentedSource, any options set in the
AugmentedSource are used in preference to those set in options. If neither specifies
a particular option, the defaults from the Configuration are used. May be null if no
options are explicitly supplied.
XPathException
public PipelineConfiguration getPipelineConfiguration()
public Receiver makeValidator(Receiver receiver, String systemId, ParseOptions options)
public static void configureParser(XMLReader parser) throws XPathException
parser
- the parser to be configured
XPathException
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |