public class ReceivingContentHandler extends Object implements ContentHandler, LexicalHandler, DTDHandler, SaxonLocator
The class was previously named ContentEmitter.
Constructor and Description |
---|
ReceivingContentHandler()
create a ReceivingContentHandler and initialise variables
|
Modifier and Type | Method and Description |
---|---|
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) |
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) |
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) |
public ReceivingContentHandler()
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)
getSystemId
in interface LocationProvider
public int getLineNumber(int locationId)
getLineNumber
in interface LocationProvider