FileDocCategorySizeDatePackage
AxisContentHandler.javaAPI DocApache Axis 1.44809Sat Apr 22 18:57:28 BST 2006org.apache.axis.encoding.ser.castor

AxisContentHandler

public class AxisContentHandler extends DefaultHandler
This ContentHandler delegates all serialization to an axis SerializationContext
author
Fabien Nisol

Fields Summary
private org.apache.axis.encoding.SerializationContext
context
serialization context to delegate to
Constructors Summary
public AxisContentHandler(org.apache.axis.encoding.SerializationContext context)
Creates a contentHandler delegate

param
context : axis context to delegate to

        super();
        setContext(context);
    
Methods Summary
public voidcharacters(char[] ch, int start, int length)
delegates to the serialization context

        try {
            context.writeChars(ch, start, length);
        } catch (IOException ioe) {
            throw new SAXException(ioe);
        }
    
public voidendElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)
delegates to the serialization context

        try {
            context.endElement();
        } catch (IOException ioe) {
            throw new SAXException(ioe);
        }
    
public org.apache.axis.encoding.SerializationContextgetContext()
Getter for property context.

return
Value of property context.

        return context;
    
public voidsetContext(org.apache.axis.encoding.SerializationContext context)
Setter for property context.

param
context New value of property context.

        this.context = context;
    
public voidstartElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes)
delegates to the serialization context

        try {
            context.startElement(new QName(uri, localName), attributes);
        } catch (IOException ioe) {
            throw new SAXException(ioe);
        }