1/*
2 * Copyright (c) 2004, 2012, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.  Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 *
25 * THIS FILE WAS MODIFIED BY SUN MICROSYSTEMS, INC.
26 */
27
28package com.sun.xml.internal.org.jvnet.fastinfoset.sax.helpers;
29
30import com.sun.xml.internal.org.jvnet.fastinfoset.sax.*;
31import org.xml.sax.SAXException;
32import org.xml.sax.ext.LexicalHandler;
33import org.xml.sax.helpers.DefaultHandler;
34
35/**
36 * Default base class for SAX event handlers of a {@link FastInfosetReader}.
37 * <p>
38 * This class is available as a convenience for applications: it provides
39 * default implementations for all of the callbacks of the following:
40 * <UL>
41 *   <LI>{@link DefaultHandler}</LI>
42 *   <LI>{@link LexicalHandler}</LI>
43 *   <LI>{@link EncodingAlgorithmContentHandler}</LI>
44 *   <LI>{@link PrimitiveTypeContentHandler}</LI>
45 * </UL>
46 * Application writers can extend this class when they need to implement only
47 * part of an interface; parser writers can instantiate this class to provide
48 * default handlers when the application has not supplied its own.
49 */
50public class FastInfosetDefaultHandler extends DefaultHandler implements
51        LexicalHandler, EncodingAlgorithmContentHandler, PrimitiveTypeContentHandler {
52
53    // LexicalHandler
54
55    public void comment(char[] ch, int start, int length) throws SAXException {
56    }
57
58    public void startCDATA() throws SAXException {
59    }
60
61    public void endCDATA() throws SAXException {
62    }
63
64    public void startDTD(String name, String publicId, String systemId) throws SAXException {
65    }
66
67    public void endDTD() throws SAXException {
68    }
69
70    public void startEntity(String name) throws SAXException {
71    }
72
73    public void endEntity(String name) throws SAXException {
74    }
75
76
77    // EncodingAlgorithmContentHandler
78
79    public void octets(String URI, int algorithm, byte[] b, int start, int length)  throws SAXException {
80    }
81
82    public void object(String URI, int algorithm, Object o)  throws SAXException {
83    }
84
85
86    // PrimitiveTypeContentHandler
87
88    public void booleans(boolean[] b, int start, int length) throws SAXException {
89    }
90
91    public void bytes(byte[] b, int start, int length) throws SAXException {
92    }
93
94    public void shorts(short[] s, int start, int length) throws SAXException {
95    }
96
97    public void ints(int[] i, int start, int length) throws SAXException {
98    }
99
100    public void longs(long[] l, int start, int length) throws SAXException {
101    }
102
103    public void floats(float[] f, int start, int length) throws SAXException {
104    }
105
106    public void doubles(double[] d, int start, int length) throws SAXException {
107    }
108
109    public void uuids(long[] msblsb, int start, int length) throws SAXException {
110    }
111}
112