fi.iki.hsivonen.gnu.xml.aelfred2
Class SAXDriver.Adapter

java.lang.Object
  extended by fi.iki.hsivonen.gnu.xml.aelfred2.SAXDriver.Adapter
All Implemented Interfaces:
ContentHandler
Enclosing class:
SAXDriver

private static class SAXDriver.Adapter
extends Object
implements ContentHandler


Field Summary
private  DocumentHandler docHandler
           
 
Constructor Summary
SAXDriver.Adapter(DocumentHandler dh)
           
 
Method Summary
 void characters(char[] buf, int offset, int len)
           
 void endDocument()
           
 void endElement(String u, String l, String name)
           
 void endPrefixMapping(String prefix)
           
 void ignorableWhitespace(char[] buf, int offset, int len)
           
 void processingInstruction(String target, String data)
           
 void setDocumentLocator(Locator l)
           
 void skippedEntity(String name)
           
 void startDocument()
           
 void startElement(String namespace, String local, String name, Attributes attrs)
           
 void startPrefixMapping(String prefix, String uri)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

docHandler

private DocumentHandler docHandler
Constructor Detail

SAXDriver.Adapter

SAXDriver.Adapter(DocumentHandler dh)
Method Detail

setDocumentLocator

public void setDocumentLocator(Locator l)
Specified by:
setDocumentLocator in interface ContentHandler

startDocument

public void startDocument()
                   throws SAXException
Specified by:
startDocument in interface ContentHandler
Throws:
SAXException

processingInstruction

public void processingInstruction(String target,
                                  String data)
                           throws SAXException
Specified by:
processingInstruction in interface ContentHandler
Throws:
SAXException

startPrefixMapping

public void startPrefixMapping(String prefix,
                               String uri)
Specified by:
startPrefixMapping in interface ContentHandler

startElement

public void startElement(String namespace,
                         String local,
                         String name,
                         Attributes attrs)
                  throws SAXException
Specified by:
startElement in interface ContentHandler
Throws:
SAXException

characters

public void characters(char[] buf,
                       int offset,
                       int len)
                throws SAXException
Specified by:
characters in interface ContentHandler
Throws:
SAXException

ignorableWhitespace

public void ignorableWhitespace(char[] buf,
                                int offset,
                                int len)
                         throws SAXException
Specified by:
ignorableWhitespace in interface ContentHandler
Throws:
SAXException

skippedEntity

public void skippedEntity(String name)
Specified by:
skippedEntity in interface ContentHandler

endElement

public void endElement(String u,
                       String l,
                       String name)
                throws SAXException
Specified by:
endElement in interface ContentHandler
Throws:
SAXException

endPrefixMapping

public void endPrefixMapping(String prefix)
Specified by:
endPrefixMapping in interface ContentHandler

endDocument

public void endDocument()
                 throws SAXException
Specified by:
endDocument in interface ContentHandler
Throws:
SAXException