Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
RSS10_OutputFeedParserListener |
|
| 1.0;1 |
1 | /* | |
2 | * Copyright 1999,2004 The Apache Software Foundation. | |
3 | * | |
4 | * Licensed under the Apache License, Version 2.0 (the "License"); | |
5 | * you may not use this file except in compliance with the License. | |
6 | * You may obtain a copy of the License at | |
7 | * | |
8 | * http://www.apache.org/licenses/LICENSE-2.0 | |
9 | * | |
10 | * Unless required by applicable law or agreed to in writing, software | |
11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
13 | * See the License for the specific language governing permissions and | |
14 | * limitations under the License. | |
15 | */ | |
16 | ||
17 | package org.apache.commons.feedparser.output; | |
18 | ||
19 | import java.io.OutputStream; | |
20 | ||
21 | import org.apache.commons.feedparser.DefaultFeedParserListener; | |
22 | import org.apache.commons.feedparser.FeedParserListener; | |
23 | import org.apache.commons.feedparser.FeedParserState; | |
24 | ||
25 | /** | |
26 | * | |
27 | * @author <a href="mailto:burton@apache.org">Kevin A. Burton (burtonator)</a> | |
28 | * @version $Id: RSS10_OutputFeedParserListener.java 373622 2006-01-30 22:53:00Z mvdb $ | |
29 | */ | |
30 | public class RSS10_OutputFeedParserListener extends DefaultFeedParserListener | |
31 | implements FeedParserListener { | |
32 | ||
33 | 0 | private OutputStream out = null; |
34 | ||
35 | /** | |
36 | * | |
37 | * Create a new <code>RSS10_OutputFeedParserListener</code> instance. | |
38 | * | |
39 | * | |
40 | */ | |
41 | 0 | public RSS10_OutputFeedParserListener( OutputStream out ) { |
42 | 0 | this.out = out; |
43 | 0 | } |
44 | ||
45 | /** | |
46 | * Called prior to event parsing to signal the parsing of a new feed. | |
47 | * | |
48 | * | |
49 | */ | |
50 | 0 | public void init() {} |
51 | 0 | public void setContext( Object context ) {} |
52 | ||
53 | /** | |
54 | * Called when a channel item is found. | |
55 | * | |
56 | * | |
57 | */ | |
58 | public void onChannel( FeedParserState state, | |
59 | String title, | |
60 | String link, | |
61 | String description ) { | |
62 | ||
63 | 0 | } |
64 | ||
65 | public void onChannelEnd() { | |
66 | ||
67 | 0 | } |
68 | ||
69 | /** | |
70 | * Called when an RSS image is found. | |
71 | * | |
72 | * | |
73 | */ | |
74 | public void onImage( FeedParserState state, | |
75 | String title, | |
76 | String link, | |
77 | String url ) { | |
78 | ||
79 | 0 | } |
80 | ||
81 | public void onImageEnd() { | |
82 | ||
83 | 0 | } |
84 | ||
85 | /** | |
86 | * Called when an RSS item or Atom entry is found. | |
87 | * | |
88 | * | |
89 | */ | |
90 | public void onItem( FeedParserState state, | |
91 | String title, | |
92 | String link, | |
93 | String description, | |
94 | String permalink ) { | |
95 | ||
96 | 0 | } |
97 | ||
98 | public void onItemEnd() { | |
99 | ||
100 | 0 | } |
101 | ||
102 | /** | |
103 | * Called when the feed has finished parsing. | |
104 | * | |
105 | * | |
106 | */ | |
107 | public void finished() { | |
108 | ||
109 | 0 | } |
110 | ||
111 | } | |
112 |