FileDocCategorySizeDatePackage
ToTextSAXHandler.javaAPI DocJava SE 5 API9975Fri Aug 26 14:56:02 BST 2005com.sun.org.apache.xml.internal.serializer

ToTextSAXHandler

public class ToTextSAXHandler extends ToSAXHandler
author
minchau To change this generated comment edit the template variable "typecomment": Window>Preferences>Java>Templates. To enable and disable the creation of type comments go to Window>Preferences>Java>Code Generation.
author
Santiago Pericas-Geertsen

Fields Summary
Constructors Summary
public ToTextSAXHandler(ContentHandler hdlr, LexicalHandler lex, String encoding)

        super(hdlr, lex, encoding);
    
public ToTextSAXHandler(ContentHandler handler, String encoding)
From XSLTC

        super(handler,encoding);
    
Methods Summary
public voidaddAttribute(java.lang.String uri, java.lang.String localName, java.lang.String rawName, java.lang.String type, java.lang.String value)

see
com.sun.org.apache.xml.internal.serializer.ExtendedContentHandler#addAttribute(String, String, String, String, String)

    
public voidaddAttribute(java.lang.String name, java.lang.String value)
From XSLTC

        // do nothing
    
public voidattributeDecl(java.lang.String arg0, java.lang.String arg1, java.lang.String arg2, java.lang.String arg3, java.lang.String arg4)

see
org.xml.sax.ext.DeclHandler#attributeDecl(String, String, String, String, String)

    
public voidcharacters(java.lang.String characters)

see
com.sun.org.apache.xml.internal.serializer.ExtendedContentHandler#characters(String)

 
        final int length = characters.length();
        if (length > m_charsBuff.length)
        {
            m_charsBuff = new char[length*2 + 1];
        }
        characters.getChars(0, length, m_charsBuff, 0);
   
        m_saxHandler.characters(m_charsBuff, 0, length);
    
    
public voidcharacters(char[] characters, int offset, int length)

see
org.xml.sax.ContentHandler#characters(char[], int, int)

 
    
        m_saxHandler.characters(characters, offset, length);

        // time to fire off characters event
		if (m_tracer != null)
            super.fireCharEvent(characters, offset, length);                
    
public voidcomment(char[] ch, int start, int length)

        if (m_tracer != null)
            super.fireCommentEvent(ch, start, length);
    
public voidcomment(java.lang.String data)

        final int length = data.length();
        if (length > m_charsBuff.length)
        {
            m_charsBuff = new char[length*2 + 1];
        }
        data.getChars(0, length, m_charsBuff, 0);
        comment(m_charsBuff, 0, length);
    
public voidelementDecl(java.lang.String arg0, java.lang.String arg1)

see
org.xml.sax.ext.DeclHandler#elementDecl(String, String)

    
public voidendCDATA()

see
org.xml.sax.ext.LexicalHandler#endCDATA()

    
public voidendDTD()

see
org.xml.sax.ext.LexicalHandler#endDTD()

    
public voidendDocument()
From XSLTC

see
org.xml.sax.ContentHandler#endDocument()

 
        
        flushPending();
        m_saxHandler.endDocument();
		
        if (m_tracer != null)
            super.fireEndDoc();
    
public voidendElement(java.lang.String elemName)
From XSLTC

see
com.sun.org.apache.xml.internal.serializer.ExtendedContentHandler#endElement(String)

        if (m_tracer != null)
            super.fireEndElem(elemName);
    
public voidendElement(java.lang.String arg0, java.lang.String arg1, java.lang.String arg2)

see
org.xml.sax.ContentHandler#endElement(String, String, String)

		if (m_tracer != null)
            super.fireEndElem(arg2);    	
    
public voidendPrefixMapping(java.lang.String arg0)

see
org.xml.sax.ContentHandler#endPrefixMapping(String)

    
public voidexternalEntityDecl(java.lang.String arg0, java.lang.String arg1, java.lang.String arg2)

see
org.xml.sax.ext.DeclHandler#externalEntityDecl(String, String, String)

    
public java.util.PropertiesgetOutputFormat()

see
com.sun.org.apache.xml.internal.serializer.Serializer#getOutputFormat()

        return null;
    
public java.io.OutputStreamgetOutputStream()

see
com.sun.org.apache.xml.internal.serializer.Serializer#getOutputStream()

        return null;
    
public java.io.WritergetWriter()

see
com.sun.org.apache.xml.internal.serializer.Serializer#getWriter()

        return null;
    
public voidignorableWhitespace(char[] arg0, int arg1, int arg2)

see
org.xml.sax.ContentHandler#ignorableWhitespace(char[], int, int)

    
public voidindent(int n)
Does nothing because the indent attribute is ignored for text output.

    
public voidinternalEntityDecl(java.lang.String arg0, java.lang.String arg1)

see
org.xml.sax.ext.DeclHandler#internalEntityDecl(String, String)

    
public voidnamespaceAfterStartElement(java.lang.String prefix, java.lang.String uri)

        // no namespace support for HTML
    
public voidprocessingInstruction(java.lang.String arg0, java.lang.String arg1)
From XSLTC

see
org.xml.sax.ContentHandler#processingInstruction(String, String)

        if (m_tracer != null)
            super.fireEscapingEvent(arg0, arg1);
    
public booleanreset()

see
com.sun.org.apache.xml.internal.serializer.Serializer#reset()

        return false;
    
public voidserialize(org.w3c.dom.Node node)

see
com.sun.org.apache.xml.internal.serializer.DOMSerializer#serialize(Node)

    
public voidsetDocumentLocator(org.xml.sax.Locator arg0)

see
org.xml.sax.ContentHandler#setDocumentLocator(Locator)

    
public booleansetEscaping(boolean escape)

see
com.sun.org.apache.xml.internal.serializer.SerializationHandler#setEscaping(boolean)

        return false;
    
public voidsetIndent(boolean indent)

see
com.sun.org.apache.xml.internal.serializer.SerializationHandler#setIndent(boolean)

    
public voidsetOutputFormat(java.util.Properties format)

see
com.sun.org.apache.xml.internal.serializer.Serializer#setOutputFormat(Properties)

    
public voidsetOutputStream(java.io.OutputStream output)

see
com.sun.org.apache.xml.internal.serializer.Serializer#setOutputStream(OutputStream)

    
public voidsetWriter(java.io.Writer writer)

see
com.sun.org.apache.xml.internal.serializer.Serializer#setWriter(Writer)

    
public voidskippedEntity(java.lang.String arg0)

see
org.xml.sax.ContentHandler#skippedEntity(String)

    
public voidstartCDATA()

see
org.xml.sax.ext.LexicalHandler#startCDATA()

    
public voidstartElement(java.lang.String arg0, java.lang.String arg1, java.lang.String arg2, org.xml.sax.Attributes arg3)

see
org.xml.sax.ContentHandler#startElement(String, String, String, Attributes)

        flushPending();
        super.startElement(arg0, arg1, arg2, arg3);
    
public voidstartElement(java.lang.String elementNamespaceURI, java.lang.String elementLocalName, java.lang.String elementName)
From XSLTC

see
com.sun.org.apache.xml.internal.serializer.ExtendedContentHandler#startElement(String)

        super.startElement(elementNamespaceURI, elementLocalName, elementName);
    
public voidstartElement(java.lang.String elementName)

        super.startElement(elementName);
    
public voidstartEntity(java.lang.String arg0)

see
org.xml.sax.ext.LexicalHandler#startEntity(String)

    
public booleanstartPrefixMapping(java.lang.String prefix, java.lang.String uri, boolean shouldFlush)

        // no namespace support for HTML
        return false;
    
public voidstartPrefixMapping(java.lang.String prefix, java.lang.String uri)

        // no namespace support for HTML