001    /*
002     * Copyright 1999,2004 The Apache Software Foundation.
003     * 
004     * Licensed under the Apache License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     * 
008     *      http://www.apache.org/licenses/LICENSE-2.0
009     * 
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    
017    package org.apache.commons.feedparser;
018    
019    
020    /**
021     * Default implemmentation of a FeedParserListener with noop methods.  This can
022     * be used as a base class for new implementations which do not need most of the
023     * functionality of a FeedParserListener.
024     * 
025     * @see FeedParserListener 
026     * @author <a href="mailto:burton@apache.org">Kevin A. Burton (burtonator)</a>
027     * @version $Id: DefaultFeedDirectoryParserListener.java 373614 2006-01-30 22:31:21Z mvdb $
028     */
029    public abstract class DefaultFeedDirectoryParserListener
030        extends DefaultFeedParserListener 
031        implements FeedParserListener, FeedDirectoryParserListener {
032    
033        public void onItem( FeedParserState state,
034                            String title,
035                            String weblog,
036                            String description,
037                            String feed ) throws FeedParserException {}
038    
039        public void onItemEnd() throws FeedParserException {}
040    
041        public void onRelation( FeedParserState state,
042                                String value ) {}
043    
044        public void onRelationEnd() {}
045    
046        public void onFolder( FeedParserState state,
047                              String name ) throws FeedParserException {}
048    
049        public void onFolderEnd() throws FeedParserException {}
050    
051    }
052