|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.saxon.event.ProxyReceiver
net.sf.saxon.event.PIGrabber
The PIGrabber class is a Receiver that looks for xml-stylesheet processing instructions and tests whether they match specified criteria; for those that do, it creates an InputSource object referring to the relevant stylesheet
Field Summary |
Fields inherited from class net.sf.saxon.event.ProxyReceiver |
baseReceiver, namePool, systemId |
Fields inherited from interface javax.xml.transform.Result |
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING |
Constructor Summary | |
PIGrabber()
|
Method Summary | |
Source[] |
getAssociatedStylesheets()
Return list of stylesheets that matched, as an array of Source objects |
boolean |
isTerminated()
Determine whether the parse terminated because the first start element tag was found |
void |
processingInstruction(String target,
CharSequence data,
int properties)
Handle xml-stylesheet PI |
void |
setBaseURI(String uri)
Set the base URI |
void |
setCriteria(String media,
String title,
String charset)
|
void |
setFactory(Configuration config)
|
void |
setURIResolver(URIResolver resolver)
Set the URI resolver to be used for the href attribute |
void |
startDocument()
Start of document |
void |
startElement(int namecode,
int typecode,
int properties)
Abort the parse when the first start element tag is found |
Methods inherited from class net.sf.saxon.event.ProxyReceiver |
attribute, characters, comment, endDocument, endElement, getNamePool, getSystemId, getUnderlyingReceiver, namespace, setDocumentLocator, setNamePool, setSystemId, setUnderlyingReceiver, setUnparsedEntity, startContent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PIGrabber()
Method Detail |
public void setFactory(Configuration config)
public void setCriteria(String media, String title, String charset)
public void setBaseURI(String uri)
public void setURIResolver(URIResolver resolver)
public void startDocument()
ProxyReceiver
startDocument
in interface Receiver
startDocument
in class ProxyReceiver
public void startElement(int namecode, int typecode, int properties) throws TransformerException
startElement
in interface Receiver
startElement
in class ProxyReceiver
namecode
- integer code identifying the name of the element within the name pool.typecode
- integer code identifying the element's type within the name pool.
TransformerException
public boolean isTerminated()
public void processingInstruction(String target, CharSequence data, int properties) throws TransformerException
processingInstruction
in interface Receiver
processingInstruction
in class ProxyReceiver
TransformerException
public Source[] getAssociatedStylesheets() throws TransformerException
TransformerException
- if a URI cannot be resolved
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |