events.
| Method from com.sun.org.apache.xerces.internal.util.SAX2XNI Detail: |
public void characters(char[] buf,
int offset,
int len) throws SAXException {
try {
fCore.characters(new XMLString(buf,offset,len),null);
} catch( WrappedSAXException e ) {
throw e.exception;
}
}
|
public void endDocument() throws SAXException {
try {
fCore.endDocument(null);
} catch( WrappedSAXException e ) {
throw e.exception;
}
}
|
public void endElement(String uri,
String local,
String qname) throws SAXException {
try {
fCore.endElement(createQName(uri,local,qname),null);
} catch( WrappedSAXException e ) {
throw e.exception;
}
}
|
public void endPrefixMapping(String prefix) {
nsContext.popContext();
}
|
public XMLDocumentHandler getDocumentHandler() {
return fCore;
}
|
public void ignorableWhitespace(char[] buf,
int offset,
int len) throws SAXException {
try {
fCore.ignorableWhitespace(new XMLString(buf,offset,len),null);
} catch( WrappedSAXException e ) {
throw e.exception;
}
}
|
public void processingInstruction(String target,
String data) throws SAXException {
try {
fCore.processingInstruction(
symbolize(target),createXMLString(data),null);
} catch( WrappedSAXException e ) {
throw e.exception;
}
}
|
public void setDocumentHandler(XMLDocumentHandler handler) {
fCore = handler;
}
|
public void setDocumentLocator(Locator _loc) {
this.locator = _loc;
}
|
public void skippedEntity(String name) {
}
|
public void startDocument() throws SAXException {
try {
nsContext.reset();
XMLLocator xmlLocator;
if(locator==null)
// some SAX source doesn't provide a locator,
// in which case we assume no line information is available
// and use a dummy locator. With this, downstream components
// can always assume that they will get a non-null Locator.
xmlLocator=new SimpleLocator(null,null,-1,-1);
else
xmlLocator=new LocatorWrapper(locator);
fCore.startDocument(
xmlLocator,
null,
nsContext,
null);
} catch( WrappedSAXException e ) {
throw e.exception;
}
}
|
public void startElement(String uri,
String local,
String qname,
Attributes att) throws SAXException {
try {
fCore.startElement(createQName(uri,local,qname),createAttributes(att),null);
} catch( WrappedSAXException e ) {
throw e.exception;
}
}
|
public void startPrefixMapping(String prefix,
String uri) {
nsContext.pushContext();
nsContext.declarePrefix(prefix,uri);
}
|