| java.lang.Object net.sf.saxon.event.ReceivingContentHandler
All known Subclasses: net.sf.saxon.TransformerHandlerImpl, net.sf.saxon.TemplatesHandlerImpl, net.sf.saxon.IdentityTransformerHandler,
ReceivingContentHandler | public class ReceivingContentHandler implements ContentHandler,LexicalHandler,DTDHandler,SaxonLocator(Code) | | ReceivingContentHandler is a glue class that provides a standard SAX ContentHandler
interface to a Saxon Receiver. To achieve this it needs to map names supplied
as strings to numeric name codes, for which purpose it needs access to a name
pool. The class also performs the function of assembling adjacent text nodes.
The class was previously named ContentEmitter.
author: Michael H. Kay |
Method Summary | |
public void | characters(char ch, int start, int length) | public void | comment(char ch, int start, int length) | public void | endCDATA() | public void | endDTD() Register the end of the DTD. | public void | endDocument() | public void | endElement(String uri, String localname, String rawname) | public void | endEntity(String name) | public void | endPrefixMapping(String prefix) | public int | getColumnNumber() Return the character position where the current document event ends. | public Configuration | getConfiguration() | public int | getLineNumber() Return the line number where the current document event ends. | public int | getLineNumber(int locationId) | public PipelineConfiguration | getPipelineConfiguration() | public String | getPublicId() Return the public identifier for the current document event. | public String | getSystemId() Return the public identifier for the current document event. | public String | getSystemId(int locationId) | public void | ignorableWhitespace(char ch, int start, int length) | public boolean | isIgnoringIgnorableWhitespace() Determine whether "ignorable whitespace" is ignored. | public void | notationDecl(String name, String publicId, String systemId) | public void | processingInstruction(String name, String remainder) | public void | setDocumentLocator(Locator locator) | public void | setIgnoreIgnorableWhitespace(boolean ignore) Set whether "ignorable whitespace" should be ignored. | public void | setPipelineConfiguration(PipelineConfiguration pipe) | public void | setReceiver(Receiver e) | public void | skippedEntity(String name) | public void | startCDATA() | public void | startDTD(String name, String publicId, String systemId) Register the start of the DTD. | public void | startDocument() | public void | startElement(String uri, String localname, String rawname, Attributes atts) | public void | startEntity(String name) | public void | startPrefixMapping(String prefix, String uri) | public void | unparsedEntityDecl(String name, String publicId, String systemId, String notationName) |
ReceivingContentHandler | public ReceivingContentHandler()(Code) | | create a ReceivingContentHandler and initialise variables
|
characters | public void characters(char ch, int start, int length) throws SAXException(Code) | | Callback interface for SAX: not for application use
|
comment | public void comment(char ch, int start, int length) throws SAXException(Code) | | Callback interface for SAX (part of LexicalHandler interface): not for application use
|
endDTD | public void endDTD() throws SAXException(Code) | | Register the end of the DTD. Comments in the DTD are skipped because they
are not part of the XPath data model
|
endDocument | public void endDocument() throws SAXException(Code) | | Callback interface for SAX: not for application use
|
endPrefixMapping | public void endPrefixMapping(String prefix) throws SAXException(Code) | | Callback interface for SAX: not for application use
|
getColumnNumber | public int getColumnNumber()(Code) | | Return the character position where the current document event ends.
The column number, or -1 if none is available. |
getLineNumber | public int getLineNumber()(Code) | | Return the line number where the current document event ends.
The line number, or -1 if none is available. |
getLineNumber | public int getLineNumber(int locationId)(Code) | | |
getPublicId | public String getPublicId()(Code) | | Return the public identifier for the current document event.
A string containing the public identifier, ornull if none is available. |
getSystemId | public String getSystemId()(Code) | | Return the public identifier for the current document event.
A string containing the system identifier, ornull if none is available. |
ignorableWhitespace | public void ignorableWhitespace(char ch, int start, int length) throws SAXException(Code) | | Callback interface for SAX: not for application use
|
isIgnoringIgnorableWhitespace | public boolean isIgnoringIgnorableWhitespace()(Code) | | Determine whether "ignorable whitespace" is ignored. This returns the value that was set
using
ReceivingContentHandler.setIgnoreIgnorableWhitespace if that has been called; otherwise the value
from the configuration.
|
processingInstruction | public void processingInstruction(String name, String remainder) throws SAXException(Code) | | Callback interface for SAX: not for application use
|
setDocumentLocator | public void setDocumentLocator(Locator locator)(Code) | | Callback interface for SAX: not for application use
|
setIgnoreIgnorableWhitespace | public void setIgnoreIgnorableWhitespace(boolean ignore)(Code) | | Set whether "ignorable whitespace" should be ignored. This method is effective only
if called after setPipelineConfiguration, since the default value is taken from the
configuration.
|
startDTD | public void startDTD(String name, String publicId, String systemId) throws SAXException(Code) | | Register the start of the DTD. Comments in the DTD are skipped because they
are not part of the XPath data model
|
startDocument | public void startDocument() throws SAXException(Code) | | Callback interface for SAX: not for application use
|
startPrefixMapping | public void startPrefixMapping(String prefix, String uri) throws SAXException(Code) | | Callback interface for SAX: not for application use
|
|
|