FileDocCategorySizeDatePackage
ToTextSAXHandler.javaAPI DocJava SE 6 API9363Tue Jun 10 00:23:08 BST 2008com.sun.org.apache.xml.internal.serializer

ToTextSAXHandler

public final class ToTextSAXHandler extends ToSAXHandler
This class converts SAX-like event to SAX events for xsl:output method "text". This class is only to be used internally. This class is not a public API.
xsl.usage
internal

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, boolean XSLAttribute)

see
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
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
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
Serializer#getOutputFormat()

        return null;
    
public java.io.OutputStreamgetOutputStream()

see
Serializer#getOutputStream()

        return null;
    
public java.io.WritergetWriter()

see
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
Serializer#reset()

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

see
DOMSerializer#serialize(Node)

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

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

        super.setDocumentLocator(arg0);
    
public booleansetEscaping(boolean escape)

see
SerializationHandler#setEscaping(boolean)

        return false;
    
public voidsetIndent(boolean indent)

see
SerializationHandler#setIndent(boolean)

    
public voidsetOutputFormat(java.util.Properties format)

see
Serializer#setOutputFormat(Properties)

    
public voidsetOutputStream(java.io.OutputStream output)

see
Serializer#setOutputStream(OutputStream)

    
public voidsetWriter(java.io.Writer writer)

see
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
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