jaxp/src/com/sun/org/apache/xml/internal/serializer/ToTextSAXHandler.java
author lana
Tue, 18 Mar 2014 17:49:48 -0700
changeset 23377 2af1ddf102a4
parent 12457 c348e06f0e82
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6
7f561c08de6b Initial load
duke
parents:
diff changeset
     1
/*
7f561c08de6b Initial load
duke
parents:
diff changeset
     2
 * reserved comment block
7f561c08de6b Initial load
duke
parents:
diff changeset
     3
 * DO NOT REMOVE OR ALTER!
7f561c08de6b Initial load
duke
parents:
diff changeset
     4
 */
7f561c08de6b Initial load
duke
parents:
diff changeset
     5
/*
7f561c08de6b Initial load
duke
parents:
diff changeset
     6
 * Copyright 2001-2004 The Apache Software Foundation.
7f561c08de6b Initial load
duke
parents:
diff changeset
     7
 *
7f561c08de6b Initial load
duke
parents:
diff changeset
     8
 * Licensed under the Apache License, Version 2.0 (the "License");
7f561c08de6b Initial load
duke
parents:
diff changeset
     9
 * you may not use this file except in compliance with the License.
7f561c08de6b Initial load
duke
parents:
diff changeset
    10
 * You may obtain a copy of the License at
7f561c08de6b Initial load
duke
parents:
diff changeset
    11
 *
7f561c08de6b Initial load
duke
parents:
diff changeset
    12
 *     http://www.apache.org/licenses/LICENSE-2.0
7f561c08de6b Initial load
duke
parents:
diff changeset
    13
 *
7f561c08de6b Initial load
duke
parents:
diff changeset
    14
 * Unless required by applicable law or agreed to in writing, software
7f561c08de6b Initial load
duke
parents:
diff changeset
    15
 * distributed under the License is distributed on an "AS IS" BASIS,
7f561c08de6b Initial load
duke
parents:
diff changeset
    16
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
7f561c08de6b Initial load
duke
parents:
diff changeset
    17
 * See the License for the specific language governing permissions and
7f561c08de6b Initial load
duke
parents:
diff changeset
    18
 * limitations under the License.
7f561c08de6b Initial load
duke
parents:
diff changeset
    19
 */
7f561c08de6b Initial load
duke
parents:
diff changeset
    20
/*
7f561c08de6b Initial load
duke
parents:
diff changeset
    21
 * $Id: ToTextSAXHandler.java,v 1.3 2005/09/28 13:49:08 pvedula Exp $
7f561c08de6b Initial load
duke
parents:
diff changeset
    22
 */
7f561c08de6b Initial load
duke
parents:
diff changeset
    23
package com.sun.org.apache.xml.internal.serializer;
7f561c08de6b Initial load
duke
parents:
diff changeset
    24
7f561c08de6b Initial load
duke
parents:
diff changeset
    25
import java.io.IOException;
7f561c08de6b Initial load
duke
parents:
diff changeset
    26
import java.io.OutputStream;
7f561c08de6b Initial load
duke
parents:
diff changeset
    27
import java.io.Writer;
7f561c08de6b Initial load
duke
parents:
diff changeset
    28
import java.util.Properties;
7f561c08de6b Initial load
duke
parents:
diff changeset
    29
7f561c08de6b Initial load
duke
parents:
diff changeset
    30
import org.w3c.dom.Node;
7f561c08de6b Initial load
duke
parents:
diff changeset
    31
import org.xml.sax.Attributes;
7f561c08de6b Initial load
duke
parents:
diff changeset
    32
import org.xml.sax.ContentHandler;
7f561c08de6b Initial load
duke
parents:
diff changeset
    33
import org.xml.sax.Locator;
7f561c08de6b Initial load
duke
parents:
diff changeset
    34
import org.xml.sax.SAXException;
7f561c08de6b Initial load
duke
parents:
diff changeset
    35
import org.xml.sax.ext.LexicalHandler;
7f561c08de6b Initial load
duke
parents:
diff changeset
    36
7f561c08de6b Initial load
duke
parents:
diff changeset
    37
/**
7f561c08de6b Initial load
duke
parents:
diff changeset
    38
 * This class converts SAX-like event to SAX events for
7f561c08de6b Initial load
duke
parents:
diff changeset
    39
 * xsl:output method "text".
7f561c08de6b Initial load
duke
parents:
diff changeset
    40
 *
7f561c08de6b Initial load
duke
parents:
diff changeset
    41
 * This class is only to be used internally. This class is not a public API.
7f561c08de6b Initial load
duke
parents:
diff changeset
    42
 *
7f561c08de6b Initial load
duke
parents:
diff changeset
    43
 * @xsl.usage internal
7f561c08de6b Initial load
duke
parents:
diff changeset
    44
 */
7f561c08de6b Initial load
duke
parents:
diff changeset
    45
public final class ToTextSAXHandler extends ToSAXHandler
7f561c08de6b Initial load
duke
parents:
diff changeset
    46
{
7f561c08de6b Initial load
duke
parents:
diff changeset
    47
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
    48
     * From XSLTC
7f561c08de6b Initial load
duke
parents:
diff changeset
    49
     * @see ExtendedContentHandler#endElement(String)
7f561c08de6b Initial load
duke
parents:
diff changeset
    50
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
    51
    public void endElement(String elemName) throws SAXException
7f561c08de6b Initial load
duke
parents:
diff changeset
    52
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
    53
        if (m_tracer != null)
7f561c08de6b Initial load
duke
parents:
diff changeset
    54
            super.fireEndElem(elemName);
7f561c08de6b Initial load
duke
parents:
diff changeset
    55
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
    56
7f561c08de6b Initial load
duke
parents:
diff changeset
    57
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
    58
     * @see org.xml.sax.ContentHandler#endElement(String, String, String)
7f561c08de6b Initial load
duke
parents:
diff changeset
    59
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
    60
    public void endElement(String arg0, String arg1, String arg2)
7f561c08de6b Initial load
duke
parents:
diff changeset
    61
        throws SAXException
7f561c08de6b Initial load
duke
parents:
diff changeset
    62
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
    63
                if (m_tracer != null)
7f561c08de6b Initial load
duke
parents:
diff changeset
    64
            super.fireEndElem(arg2);
7f561c08de6b Initial load
duke
parents:
diff changeset
    65
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
    66
7f561c08de6b Initial load
duke
parents:
diff changeset
    67
    public ToTextSAXHandler(ContentHandler hdlr, LexicalHandler lex, String encoding)
7f561c08de6b Initial load
duke
parents:
diff changeset
    68
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
    69
        super(hdlr, lex, encoding);
7f561c08de6b Initial load
duke
parents:
diff changeset
    70
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
    71
7f561c08de6b Initial load
duke
parents:
diff changeset
    72
        /**
7f561c08de6b Initial load
duke
parents:
diff changeset
    73
     * From XSLTC
7f561c08de6b Initial load
duke
parents:
diff changeset
    74
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
    75
    public ToTextSAXHandler(ContentHandler handler, String encoding)
7f561c08de6b Initial load
duke
parents:
diff changeset
    76
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
    77
        super(handler,encoding);
7f561c08de6b Initial load
duke
parents:
diff changeset
    78
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
    79
7f561c08de6b Initial load
duke
parents:
diff changeset
    80
    public void comment(char ch[], int start, int length)
7f561c08de6b Initial load
duke
parents:
diff changeset
    81
        throws org.xml.sax.SAXException
7f561c08de6b Initial load
duke
parents:
diff changeset
    82
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
    83
        if (m_tracer != null)
7f561c08de6b Initial load
duke
parents:
diff changeset
    84
            super.fireCommentEvent(ch, start, length);
7f561c08de6b Initial load
duke
parents:
diff changeset
    85
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
    86
7f561c08de6b Initial load
duke
parents:
diff changeset
    87
    public void comment(String data) throws org.xml.sax.SAXException
7f561c08de6b Initial load
duke
parents:
diff changeset
    88
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
    89
        final int length = data.length();
7f561c08de6b Initial load
duke
parents:
diff changeset
    90
        if (length > m_charsBuff.length)
7f561c08de6b Initial load
duke
parents:
diff changeset
    91
        {
7f561c08de6b Initial load
duke
parents:
diff changeset
    92
            m_charsBuff = new char[length*2 + 1];
7f561c08de6b Initial load
duke
parents:
diff changeset
    93
        }
7f561c08de6b Initial load
duke
parents:
diff changeset
    94
        data.getChars(0, length, m_charsBuff, 0);
7f561c08de6b Initial load
duke
parents:
diff changeset
    95
        comment(m_charsBuff, 0, length);
7f561c08de6b Initial load
duke
parents:
diff changeset
    96
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
    97
7f561c08de6b Initial load
duke
parents:
diff changeset
    98
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
    99
     * @see Serializer#getOutputFormat()
7f561c08de6b Initial load
duke
parents:
diff changeset
   100
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   101
    public Properties getOutputFormat()
7f561c08de6b Initial load
duke
parents:
diff changeset
   102
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   103
        return null;
7f561c08de6b Initial load
duke
parents:
diff changeset
   104
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   105
7f561c08de6b Initial load
duke
parents:
diff changeset
   106
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   107
     * @see Serializer#getOutputStream()
7f561c08de6b Initial load
duke
parents:
diff changeset
   108
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   109
    public OutputStream getOutputStream()
7f561c08de6b Initial load
duke
parents:
diff changeset
   110
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   111
        return null;
7f561c08de6b Initial load
duke
parents:
diff changeset
   112
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   113
7f561c08de6b Initial load
duke
parents:
diff changeset
   114
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   115
     * @see Serializer#getWriter()
7f561c08de6b Initial load
duke
parents:
diff changeset
   116
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   117
    public Writer getWriter()
7f561c08de6b Initial load
duke
parents:
diff changeset
   118
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   119
        return null;
7f561c08de6b Initial load
duke
parents:
diff changeset
   120
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   121
7f561c08de6b Initial load
duke
parents:
diff changeset
   122
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   123
     * Does nothing because
7f561c08de6b Initial load
duke
parents:
diff changeset
   124
     * the indent attribute is ignored for text output.
7f561c08de6b Initial load
duke
parents:
diff changeset
   125
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   126
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   127
    public void indent(int n) throws SAXException
7f561c08de6b Initial load
duke
parents:
diff changeset
   128
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   129
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   130
7f561c08de6b Initial load
duke
parents:
diff changeset
   131
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   132
     * @see Serializer#reset()
7f561c08de6b Initial load
duke
parents:
diff changeset
   133
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   134
    public boolean reset()
7f561c08de6b Initial load
duke
parents:
diff changeset
   135
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   136
        return false;
7f561c08de6b Initial load
duke
parents:
diff changeset
   137
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   138
7f561c08de6b Initial load
duke
parents:
diff changeset
   139
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   140
     * @see DOMSerializer#serialize(Node)
7f561c08de6b Initial load
duke
parents:
diff changeset
   141
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   142
    public void serialize(Node node) throws IOException
7f561c08de6b Initial load
duke
parents:
diff changeset
   143
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   144
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   145
7f561c08de6b Initial load
duke
parents:
diff changeset
   146
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   147
     * @see SerializationHandler#setEscaping(boolean)
7f561c08de6b Initial load
duke
parents:
diff changeset
   148
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   149
    public boolean setEscaping(boolean escape)
7f561c08de6b Initial load
duke
parents:
diff changeset
   150
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   151
        return false;
7f561c08de6b Initial load
duke
parents:
diff changeset
   152
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   153
7f561c08de6b Initial load
duke
parents:
diff changeset
   154
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   155
     * @see SerializationHandler#setIndent(boolean)
7f561c08de6b Initial load
duke
parents:
diff changeset
   156
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   157
    public void setIndent(boolean indent)
7f561c08de6b Initial load
duke
parents:
diff changeset
   158
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   159
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   160
7f561c08de6b Initial load
duke
parents:
diff changeset
   161
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   162
     * @see Serializer#setOutputFormat(Properties)
7f561c08de6b Initial load
duke
parents:
diff changeset
   163
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   164
    public void setOutputFormat(Properties format)
7f561c08de6b Initial load
duke
parents:
diff changeset
   165
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   166
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   167
7f561c08de6b Initial load
duke
parents:
diff changeset
   168
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   169
     * @see Serializer#setOutputStream(OutputStream)
7f561c08de6b Initial load
duke
parents:
diff changeset
   170
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   171
    public void setOutputStream(OutputStream output)
7f561c08de6b Initial load
duke
parents:
diff changeset
   172
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   173
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   174
7f561c08de6b Initial load
duke
parents:
diff changeset
   175
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   176
     * @see Serializer#setWriter(Writer)
7f561c08de6b Initial load
duke
parents:
diff changeset
   177
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   178
    public void setWriter(Writer writer)
7f561c08de6b Initial load
duke
parents:
diff changeset
   179
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   180
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   181
7f561c08de6b Initial load
duke
parents:
diff changeset
   182
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   183
     * @see ExtendedContentHandler#addAttribute(String, String, String, String, String)
7f561c08de6b Initial load
duke
parents:
diff changeset
   184
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   185
    public void addAttribute(
7f561c08de6b Initial load
duke
parents:
diff changeset
   186
        String uri,
7f561c08de6b Initial load
duke
parents:
diff changeset
   187
        String localName,
7f561c08de6b Initial load
duke
parents:
diff changeset
   188
        String rawName,
7f561c08de6b Initial load
duke
parents:
diff changeset
   189
        String type,
7f561c08de6b Initial load
duke
parents:
diff changeset
   190
        String value,
7f561c08de6b Initial load
duke
parents:
diff changeset
   191
        boolean XSLAttribute)
7f561c08de6b Initial load
duke
parents:
diff changeset
   192
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   193
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   194
7f561c08de6b Initial load
duke
parents:
diff changeset
   195
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   196
     * @see org.xml.sax.ext.DeclHandler#attributeDecl(String, String, String, String, String)
7f561c08de6b Initial load
duke
parents:
diff changeset
   197
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   198
    public void attributeDecl(
7f561c08de6b Initial load
duke
parents:
diff changeset
   199
        String arg0,
7f561c08de6b Initial load
duke
parents:
diff changeset
   200
        String arg1,
7f561c08de6b Initial load
duke
parents:
diff changeset
   201
        String arg2,
7f561c08de6b Initial load
duke
parents:
diff changeset
   202
        String arg3,
7f561c08de6b Initial load
duke
parents:
diff changeset
   203
        String arg4)
7f561c08de6b Initial load
duke
parents:
diff changeset
   204
        throws SAXException
7f561c08de6b Initial load
duke
parents:
diff changeset
   205
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   206
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   207
7f561c08de6b Initial load
duke
parents:
diff changeset
   208
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   209
     * @see org.xml.sax.ext.DeclHandler#elementDecl(String, String)
7f561c08de6b Initial load
duke
parents:
diff changeset
   210
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   211
    public void elementDecl(String arg0, String arg1) throws SAXException
7f561c08de6b Initial load
duke
parents:
diff changeset
   212
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   213
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   214
7f561c08de6b Initial load
duke
parents:
diff changeset
   215
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   216
     * @see org.xml.sax.ext.DeclHandler#externalEntityDecl(String, String, String)
7f561c08de6b Initial load
duke
parents:
diff changeset
   217
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   218
    public void externalEntityDecl(String arg0, String arg1, String arg2)
7f561c08de6b Initial load
duke
parents:
diff changeset
   219
        throws SAXException
7f561c08de6b Initial load
duke
parents:
diff changeset
   220
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   221
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   222
7f561c08de6b Initial load
duke
parents:
diff changeset
   223
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   224
     * @see org.xml.sax.ext.DeclHandler#internalEntityDecl(String, String)
7f561c08de6b Initial load
duke
parents:
diff changeset
   225
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   226
    public void internalEntityDecl(String arg0, String arg1)
7f561c08de6b Initial load
duke
parents:
diff changeset
   227
        throws SAXException
7f561c08de6b Initial load
duke
parents:
diff changeset
   228
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   229
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   230
7f561c08de6b Initial load
duke
parents:
diff changeset
   231
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   232
     * @see org.xml.sax.ContentHandler#endPrefixMapping(String)
7f561c08de6b Initial load
duke
parents:
diff changeset
   233
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   234
    public void endPrefixMapping(String arg0) throws SAXException
7f561c08de6b Initial load
duke
parents:
diff changeset
   235
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   236
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   237
7f561c08de6b Initial load
duke
parents:
diff changeset
   238
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   239
     * @see org.xml.sax.ContentHandler#ignorableWhitespace(char[], int, int)
7f561c08de6b Initial load
duke
parents:
diff changeset
   240
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   241
    public void ignorableWhitespace(char[] arg0, int arg1, int arg2)
7f561c08de6b Initial load
duke
parents:
diff changeset
   242
        throws SAXException
7f561c08de6b Initial load
duke
parents:
diff changeset
   243
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   244
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   245
7f561c08de6b Initial load
duke
parents:
diff changeset
   246
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   247
     * From XSLTC
7f561c08de6b Initial load
duke
parents:
diff changeset
   248
     * @see org.xml.sax.ContentHandler#processingInstruction(String, String)
7f561c08de6b Initial load
duke
parents:
diff changeset
   249
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   250
    public void processingInstruction(String arg0, String arg1)
7f561c08de6b Initial load
duke
parents:
diff changeset
   251
        throws SAXException
7f561c08de6b Initial load
duke
parents:
diff changeset
   252
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   253
        if (m_tracer != null)
7f561c08de6b Initial load
duke
parents:
diff changeset
   254
            super.fireEscapingEvent(arg0, arg1);
7f561c08de6b Initial load
duke
parents:
diff changeset
   255
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   256
7f561c08de6b Initial load
duke
parents:
diff changeset
   257
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   258
     * @see org.xml.sax.ContentHandler#setDocumentLocator(Locator)
7f561c08de6b Initial load
duke
parents:
diff changeset
   259
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   260
    public void setDocumentLocator(Locator arg0)
7f561c08de6b Initial load
duke
parents:
diff changeset
   261
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   262
        super.setDocumentLocator(arg0);
7f561c08de6b Initial load
duke
parents:
diff changeset
   263
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   264
7f561c08de6b Initial load
duke
parents:
diff changeset
   265
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   266
     * @see org.xml.sax.ContentHandler#skippedEntity(String)
7f561c08de6b Initial load
duke
parents:
diff changeset
   267
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   268
    public void skippedEntity(String arg0) throws SAXException
7f561c08de6b Initial load
duke
parents:
diff changeset
   269
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   270
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   271
7f561c08de6b Initial load
duke
parents:
diff changeset
   272
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   273
     * @see org.xml.sax.ContentHandler#startElement(String, String, String, Attributes)
7f561c08de6b Initial load
duke
parents:
diff changeset
   274
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   275
    public void startElement(
7f561c08de6b Initial load
duke
parents:
diff changeset
   276
        String arg0,
7f561c08de6b Initial load
duke
parents:
diff changeset
   277
        String arg1,
7f561c08de6b Initial load
duke
parents:
diff changeset
   278
        String arg2,
7f561c08de6b Initial load
duke
parents:
diff changeset
   279
        Attributes arg3)
7f561c08de6b Initial load
duke
parents:
diff changeset
   280
        throws SAXException
7f561c08de6b Initial load
duke
parents:
diff changeset
   281
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   282
        flushPending();
7f561c08de6b Initial load
duke
parents:
diff changeset
   283
        super.startElement(arg0, arg1, arg2, arg3);
7f561c08de6b Initial load
duke
parents:
diff changeset
   284
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   285
7f561c08de6b Initial load
duke
parents:
diff changeset
   286
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   287
     * @see org.xml.sax.ext.LexicalHandler#endCDATA()
7f561c08de6b Initial load
duke
parents:
diff changeset
   288
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   289
    public void endCDATA() throws SAXException
7f561c08de6b Initial load
duke
parents:
diff changeset
   290
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   291
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   292
7f561c08de6b Initial load
duke
parents:
diff changeset
   293
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   294
     * @see org.xml.sax.ext.LexicalHandler#endDTD()
7f561c08de6b Initial load
duke
parents:
diff changeset
   295
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   296
    public void endDTD() throws SAXException
7f561c08de6b Initial load
duke
parents:
diff changeset
   297
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   298
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   299
7f561c08de6b Initial load
duke
parents:
diff changeset
   300
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   301
     * @see org.xml.sax.ext.LexicalHandler#startCDATA()
7f561c08de6b Initial load
duke
parents:
diff changeset
   302
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   303
    public void startCDATA() throws SAXException
7f561c08de6b Initial load
duke
parents:
diff changeset
   304
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   305
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   306
7f561c08de6b Initial load
duke
parents:
diff changeset
   307
7f561c08de6b Initial load
duke
parents:
diff changeset
   308
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   309
     * @see org.xml.sax.ext.LexicalHandler#startEntity(String)
7f561c08de6b Initial load
duke
parents:
diff changeset
   310
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   311
    public void startEntity(String arg0) throws SAXException
7f561c08de6b Initial load
duke
parents:
diff changeset
   312
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   313
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   314
7f561c08de6b Initial load
duke
parents:
diff changeset
   315
7f561c08de6b Initial load
duke
parents:
diff changeset
   316
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   317
     * From XSLTC
7f561c08de6b Initial load
duke
parents:
diff changeset
   318
     * @see ExtendedContentHandler#startElement(String)
7f561c08de6b Initial load
duke
parents:
diff changeset
   319
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   320
    public void startElement(
7f561c08de6b Initial load
duke
parents:
diff changeset
   321
    String elementNamespaceURI,
7f561c08de6b Initial load
duke
parents:
diff changeset
   322
    String elementLocalName,
7f561c08de6b Initial load
duke
parents:
diff changeset
   323
    String elementName) throws SAXException
7f561c08de6b Initial load
duke
parents:
diff changeset
   324
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   325
        super.startElement(elementNamespaceURI, elementLocalName, elementName);
7f561c08de6b Initial load
duke
parents:
diff changeset
   326
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   327
7f561c08de6b Initial load
duke
parents:
diff changeset
   328
    public void startElement(
7f561c08de6b Initial load
duke
parents:
diff changeset
   329
    String elementName) throws SAXException
7f561c08de6b Initial load
duke
parents:
diff changeset
   330
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   331
        super.startElement(elementName);
7f561c08de6b Initial load
duke
parents:
diff changeset
   332
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   333
7f561c08de6b Initial load
duke
parents:
diff changeset
   334
7f561c08de6b Initial load
duke
parents:
diff changeset
   335
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   336
     * From XSLTC
7f561c08de6b Initial load
duke
parents:
diff changeset
   337
     * @see org.xml.sax.ContentHandler#endDocument()
7f561c08de6b Initial load
duke
parents:
diff changeset
   338
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   339
    public void endDocument() throws SAXException {
7f561c08de6b Initial load
duke
parents:
diff changeset
   340
7f561c08de6b Initial load
duke
parents:
diff changeset
   341
        flushPending();
7f561c08de6b Initial load
duke
parents:
diff changeset
   342
        m_saxHandler.endDocument();
7f561c08de6b Initial load
duke
parents:
diff changeset
   343
7f561c08de6b Initial load
duke
parents:
diff changeset
   344
        if (m_tracer != null)
7f561c08de6b Initial load
duke
parents:
diff changeset
   345
            super.fireEndDoc();
7f561c08de6b Initial load
duke
parents:
diff changeset
   346
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   347
7f561c08de6b Initial load
duke
parents:
diff changeset
   348
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   349
         *
7f561c08de6b Initial load
duke
parents:
diff changeset
   350
     * @see ExtendedContentHandler#characters(String)
7f561c08de6b Initial load
duke
parents:
diff changeset
   351
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   352
    public void characters(String characters)
7f561c08de6b Initial load
duke
parents:
diff changeset
   353
    throws SAXException
7f561c08de6b Initial load
duke
parents:
diff changeset
   354
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   355
        final int length = characters.length();
7f561c08de6b Initial load
duke
parents:
diff changeset
   356
        if (length > m_charsBuff.length)
7f561c08de6b Initial load
duke
parents:
diff changeset
   357
        {
7f561c08de6b Initial load
duke
parents:
diff changeset
   358
            m_charsBuff = new char[length*2 + 1];
7f561c08de6b Initial load
duke
parents:
diff changeset
   359
        }
7f561c08de6b Initial load
duke
parents:
diff changeset
   360
        characters.getChars(0, length, m_charsBuff, 0);
7f561c08de6b Initial load
duke
parents:
diff changeset
   361
7f561c08de6b Initial load
duke
parents:
diff changeset
   362
        m_saxHandler.characters(m_charsBuff, 0, length);
7f561c08de6b Initial load
duke
parents:
diff changeset
   363
7f561c08de6b Initial load
duke
parents:
diff changeset
   364
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   365
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   366
         * @see org.xml.sax.ContentHandler#characters(char[], int, int)
7f561c08de6b Initial load
duke
parents:
diff changeset
   367
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   368
    public void characters(char[] characters, int offset, int length)
7f561c08de6b Initial load
duke
parents:
diff changeset
   369
    throws SAXException
7f561c08de6b Initial load
duke
parents:
diff changeset
   370
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   371
7f561c08de6b Initial load
duke
parents:
diff changeset
   372
        m_saxHandler.characters(characters, offset, length);
7f561c08de6b Initial load
duke
parents:
diff changeset
   373
7f561c08de6b Initial load
duke
parents:
diff changeset
   374
        // time to fire off characters event
7f561c08de6b Initial load
duke
parents:
diff changeset
   375
                if (m_tracer != null)
7f561c08de6b Initial load
duke
parents:
diff changeset
   376
            super.fireCharEvent(characters, offset, length);
7f561c08de6b Initial load
duke
parents:
diff changeset
   377
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   378
7f561c08de6b Initial load
duke
parents:
diff changeset
   379
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   380
     * From XSLTC
7f561c08de6b Initial load
duke
parents:
diff changeset
   381
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   382
    public void addAttribute(String name, String value)
7f561c08de6b Initial load
duke
parents:
diff changeset
   383
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   384
        // do nothing
7f561c08de6b Initial load
duke
parents:
diff changeset
   385
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   386
7f561c08de6b Initial load
duke
parents:
diff changeset
   387
7f561c08de6b Initial load
duke
parents:
diff changeset
   388
    public boolean startPrefixMapping(
7f561c08de6b Initial load
duke
parents:
diff changeset
   389
        String prefix,
7f561c08de6b Initial load
duke
parents:
diff changeset
   390
        String uri,
7f561c08de6b Initial load
duke
parents:
diff changeset
   391
        boolean shouldFlush)
7f561c08de6b Initial load
duke
parents:
diff changeset
   392
        throws SAXException
7f561c08de6b Initial load
duke
parents:
diff changeset
   393
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   394
        // no namespace support for HTML
7f561c08de6b Initial load
duke
parents:
diff changeset
   395
        return false;
7f561c08de6b Initial load
duke
parents:
diff changeset
   396
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   397
7f561c08de6b Initial load
duke
parents:
diff changeset
   398
7f561c08de6b Initial load
duke
parents:
diff changeset
   399
    public void startPrefixMapping(String prefix, String uri)
7f561c08de6b Initial load
duke
parents:
diff changeset
   400
        throws org.xml.sax.SAXException
7f561c08de6b Initial load
duke
parents:
diff changeset
   401
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   402
        // no namespace support for HTML
7f561c08de6b Initial load
duke
parents:
diff changeset
   403
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   404
7f561c08de6b Initial load
duke
parents:
diff changeset
   405
7f561c08de6b Initial load
duke
parents:
diff changeset
   406
    public void namespaceAfterStartElement(
7f561c08de6b Initial load
duke
parents:
diff changeset
   407
        final String prefix,
7f561c08de6b Initial load
duke
parents:
diff changeset
   408
        final String uri)
7f561c08de6b Initial load
duke
parents:
diff changeset
   409
        throws SAXException
7f561c08de6b Initial load
duke
parents:
diff changeset
   410
    {
7f561c08de6b Initial load
duke
parents:
diff changeset
   411
        // no namespace support for HTML
7f561c08de6b Initial load
duke
parents:
diff changeset
   412
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   413
7f561c08de6b Initial load
duke
parents:
diff changeset
   414
}