001: /*
002: * Fast Infoset ver. 0.1 software ("Software")
003: *
004: * Copyright, 2004-2005 Sun Microsystems, Inc. All Rights Reserved.
005: *
006: * Software is licensed under the Apache License, Version 2.0 (the "License");
007: * you may not use this file except in compliance with the License. You may
008: * obtain a copy of the License at:
009: *
010: * http://www.apache.org/licenses/LICENSE-2.0
011: *
012: * Unless required by applicable law or agreed to in writing, software
013: * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
014: * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
015: * License for the specific language governing permissions and limitations.
016: *
017: * Sun supports and benefits from the global community of open source
018: * developers, and thanks the community for its important contributions and
019: * open standards-based technology, which Sun has adopted into many of its
020: * products.
021: *
022: * Please note that portions of Software may be provided with notices and
023: * open source licenses from such communities and third parties that govern the
024: * use of those portions, and any licenses granted hereunder do not alter any
025: * rights and obligations you may have under such open source licenses,
026: * however, the disclaimer of warranty and limitation of liability provisions
027: * in this License will apply to all Software in this distribution.
028: *
029: * You acknowledge that the Software is not designed, licensed or intended
030: * for use in the design, construction, operation or maintenance of any nuclear
031: * facility.
032: *
033: * Apache License
034: * Version 2.0, January 2004
035: * http://www.apache.org/licenses/
036: *
037: */
038:
039: package org.jvnet.fastinfoset.sax.helpers;
040:
041: import org.jvnet.fastinfoset.sax.*;
042: import org.xml.sax.SAXException;
043: import org.xml.sax.ext.LexicalHandler;
044: import org.xml.sax.helpers.DefaultHandler;
045:
046: /**
047: * Default base class for SAX event handlers of a {@link FastInfosetReader}.
048: * <p>
049: * This class is available as a convenience for applications: it provides
050: * default implementations for all of the callbacks of the following:
051: * <UL>
052: * <LI>{@link DefaultHandler}</LI>
053: * <LI>{@link LexicalHandler}</LI>
054: * <LI>{@link EncodingAlgorithmContentHandler}</LI>
055: * <LI>{@link PrimitiveTypeContentHandler}</LI>
056: * </UL>
057: * Application writers can extend this class when they need to implement only
058: * part of an interface; parser writers can instantiate this class to provide
059: * default handlers when the application has not supplied its own.
060: */
061: public class FastInfosetDefaultHandler extends DefaultHandler implements
062: LexicalHandler, EncodingAlgorithmContentHandler,
063: PrimitiveTypeContentHandler {
064:
065: // LexicalHandler
066:
067: public void comment(char[] ch, int start, int length)
068: throws SAXException {
069: }
070:
071: public void startCDATA() throws SAXException {
072: }
073:
074: public void endCDATA() throws SAXException {
075: }
076:
077: public void startDTD(String name, String publicId, String systemId)
078: throws SAXException {
079: }
080:
081: public void endDTD() throws SAXException {
082: }
083:
084: public void startEntity(String name) throws SAXException {
085: }
086:
087: public void endEntity(String name) throws SAXException {
088: }
089:
090: // EncodingAlgorithmContentHandler
091:
092: public void octets(String URI, int algorithm, byte[] b, int start,
093: int length) throws SAXException {
094: }
095:
096: public void object(String URI, int algorithm, Object o)
097: throws SAXException {
098: }
099:
100: // PrimitiveTypeContentHandler
101:
102: public void booleans(boolean[] b, int start, int length)
103: throws SAXException {
104: }
105:
106: public void bytes(byte[] b, int start, int length)
107: throws SAXException {
108: }
109:
110: public void shorts(short[] s, int start, int length)
111: throws SAXException {
112: }
113:
114: public void ints(int[] i, int start, int length)
115: throws SAXException {
116: }
117:
118: public void longs(long[] l, int start, int length)
119: throws SAXException {
120: }
121:
122: public void floats(float[] f, int start, int length)
123: throws SAXException {
124: }
125:
126: public void doubles(double[] d, int start, int length)
127: throws SAXException {
128: }
129:
130: public void uuids(long[] msblsb, int start, int length)
131: throws SAXException {
132: }
133: }
|