|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.saxon.event.ReceivingContentHandler
public class ReceivingContentHandler
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.
Constructor Summary | |
---|---|
ReceivingContentHandler()
create a ReceivingContentHandler and initialise variables |
Method Summary | |
---|---|
void |
characters(char[] ch,
int start,
int length)
Callback interface for SAX: not for application use |
void |
comment(char[] ch,
int start,
int length)
Callback interface for SAX (part of LexicalHandler interface): not for application use |
void |
endCDATA()
|
void |
endDocument()
Callback interface for SAX: not for application use |
void |
endDTD()
Register the end of the DTD. |
void |
endElement(String uri,
String localname,
String rawname)
Callback interface for SAX: not for application use |
void |
endEntity(String name)
|
void |
endPrefixMapping(String prefix)
Callback interface for SAX: not for application use |
int |
getColumnNumber()
Return the character position where the current document event ends. |
Configuration |
getConfiguration()
|
int |
getLineNumber()
Return the line number where the current document event ends. |
int |
getLineNumber(int locationId)
Get the line number within the document or module containing a particular location |
PipelineConfiguration |
getPipelineConfiguration()
|
String |
getPublicId()
Return the public identifier for the current document event. |
String |
getSystemId()
Return the public identifier for the current document event. |
String |
getSystemId(int locationId)
Get the URI of the document or module containing a particular location |
void |
ignorableWhitespace(char[] ch,
int start,
int length)
Callback interface for SAX: not for application use |
boolean |
isIgnoringIgnorableWhitespace()
Determine whether "ignorable whitespace" is ignored. |
void |
notationDecl(String name,
String publicId,
String systemId)
|
void |
processingInstruction(String name,
String remainder)
Callback interface for SAX: not for application use |
void |
reset()
Set the ReceivingContentHandler to its initial state, except for the local name cache, which is retained |
void |
setDocumentLocator(Locator locator)
Callback interface for SAX: not for application use |
void |
setIgnoreIgnorableWhitespace(boolean ignore)
Set whether "ignorable whitespace" should be ignored. |
void |
setPipelineConfiguration(PipelineConfiguration pipe)
|
void |
setReceiver(Receiver e)
|
void |
skippedEntity(String name)
|
void |
startCDATA()
|
void |
startDocument()
Callback interface for SAX: not for application use |
void |
startDTD(String name,
String publicId,
String systemId)
Register the start of the DTD. |
void |
startElement(String uri,
String localname,
String rawname,
Attributes atts)
Callback interface for SAX: not for application use |
void |
startEntity(String name)
|
void |
startPrefixMapping(String prefix,
String uri)
Callback interface for SAX: not for application use |
void |
unparsedEntityDecl(String name,
String publicId,
String systemId,
String notationName)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReceivingContentHandler()
Method Detail |
---|
public void reset()
public void setReceiver(Receiver e)
public void setPipelineConfiguration(PipelineConfiguration pipe)
public PipelineConfiguration getPipelineConfiguration()
public Configuration getConfiguration()
public void setIgnoreIgnorableWhitespace(boolean ignore)
public boolean isIgnoringIgnorableWhitespace()
setIgnoreIgnorableWhitespace(boolean)
if that has been called; otherwise the value
from the configuration.
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
SAXException
public void setDocumentLocator(Locator locator)
setDocumentLocator
in interface ContentHandler
public void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping
in interface ContentHandler
SAXException
public void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping
in interface ContentHandler
SAXException
public void startElement(String uri, String localname, String rawname, Attributes atts) throws SAXException
startElement
in interface ContentHandler
SAXException
public void endElement(String uri, String localname, String rawname) throws SAXException
endElement
in interface ContentHandler
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
SAXException
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException
ignorableWhitespace
in interface ContentHandler
SAXException
public void processingInstruction(String name, String remainder) throws SAXException
processingInstruction
in interface ContentHandler
SAXException
public void comment(char[] ch, int start, int length) throws SAXException
comment
in interface LexicalHandler
SAXException
public void skippedEntity(String name) throws SAXException
skippedEntity
in interface ContentHandler
SAXException
public void startDTD(String name, String publicId, String systemId) throws SAXException
startDTD
in interface LexicalHandler
SAXException
public void endDTD() throws SAXException
endDTD
in interface LexicalHandler
SAXException
public void startEntity(String name) throws SAXException
startEntity
in interface LexicalHandler
SAXException
public void endEntity(String name) throws SAXException
endEntity
in interface LexicalHandler
SAXException
public void startCDATA() throws SAXException
startCDATA
in interface LexicalHandler
SAXException
public void endCDATA() throws SAXException
endCDATA
in interface LexicalHandler
SAXException
public void notationDecl(String name, String publicId, String systemId) throws SAXException
notationDecl
in interface DTDHandler
SAXException
public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException
unparsedEntityDecl
in interface DTDHandler
SAXException
public String getSystemId()
getSystemId
in interface SourceLocator
getSystemId
in interface Locator
public String getPublicId()
getPublicId
in interface SourceLocator
getPublicId
in interface Locator
public int getLineNumber()
getLineNumber
in interface SourceLocator
getLineNumber
in interface Locator
public int getColumnNumber()
getColumnNumber
in interface SourceLocator
getColumnNumber
in interface Locator
public String getSystemId(int locationId)
LocationProvider
getSystemId
in interface LocationProvider
locationId
- identifier of the location in question (as passed down the Receiver pipeline)
public int getLineNumber(int locationId)
LocationProvider
getLineNumber
in interface LocationProvider
locationId
- identifier of the location in question (as passed down the Receiver pipeline)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |