1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
package org.apache.commons.feedparser; |
18 | |
|
19 | |
import java.util.Date; |
20 | |
import java.util.Locale; |
21 | |
|
22 | |
import org.jdom.Element; |
23 | |
|
24 | |
|
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | |
|
33 | |
|
34 | |
|
35 | |
|
36 | |
|
37 | 0 | public abstract class DefaultFeedParserListener implements FeedParserListener, |
38 | |
MetaFeedParserListener, |
39 | |
ModContentFeedParserListener, |
40 | |
XHTMLFeedParserListener, |
41 | |
ContentFeedParserListener { |
42 | |
|
43 | 0 | private Object context = null; |
44 | |
|
45 | 0 | public void onFeedVersion( FeedVersion version ) throws FeedParserException {} |
46 | 0 | public void init() throws FeedParserException {} |
47 | |
|
48 | |
public void setContext( Object context ) throws FeedParserException { |
49 | 0 | this.context = context; |
50 | 0 | } |
51 | |
|
52 | |
public Object getContext() throws FeedParserException { |
53 | 0 | return this.context; |
54 | |
} |
55 | |
|
56 | |
public void onChannel( FeedParserState state, |
57 | |
String title, |
58 | |
String link, |
59 | 0 | String description ) throws FeedParserException {} |
60 | |
|
61 | 0 | public void onChannelEnd() throws FeedParserException { } |
62 | |
|
63 | |
public void onImage( FeedParserState state, |
64 | |
String title, |
65 | |
String link, |
66 | 0 | String url ) throws FeedParserException {} |
67 | |
|
68 | 0 | public void onImageEnd() throws FeedParserException {} |
69 | |
|
70 | |
public void onItem( FeedParserState state, |
71 | |
String title, |
72 | |
String link, |
73 | |
String description, |
74 | 0 | String permalink ) throws FeedParserException { } |
75 | |
|
76 | 0 | public void onItemEnd() throws FeedParserException {} |
77 | 0 | public void finished() throws FeedParserException {} |
78 | |
|
79 | |
|
80 | |
|
81 | 0 | public void onCopyright( FeedParserState state, String content ) throws FeedParserException {} |
82 | 0 | public void onCopyrightEnd() throws FeedParserException {} |
83 | |
|
84 | |
|
85 | |
|
86 | |
|
87 | |
|
88 | |
|
89 | 0 | public void onCreated( FeedParserState state, Date date ) throws FeedParserException{} |
90 | 0 | public void onCreatedEnd() throws FeedParserException {} |
91 | |
|
92 | 0 | public void onSubject( FeedParserState state, String content ) throws FeedParserException {} |
93 | 0 | public void onSubjectEnd() throws FeedParserException {} |
94 | |
|
95 | |
|
96 | |
|
97 | |
|
98 | |
|
99 | |
|
100 | 0 | public void onIssued( FeedParserState state, String content ) throws FeedParserException {} |
101 | 0 | public void onIssuedEnd() throws FeedParserException {} |
102 | |
|
103 | 0 | public void onLocale( FeedParserState state, Locale locale ) throws FeedParserException {} |
104 | |
|
105 | 0 | public void onLocaleEnd() throws FeedParserException {} |
106 | |
|
107 | |
public void onGUID( FeedParserState state, |
108 | |
String value, |
109 | 0 | boolean isPermalink ) throws FeedParserException {} |
110 | |
|
111 | 0 | public void onGUIDEnd() throws FeedParserException{} |
112 | |
|
113 | 0 | public void onGenerator( FeedParserState state, String content ) throws FeedParserException {} |
114 | 0 | public void onGeneratorEnd() throws FeedParserException {} |
115 | |
|
116 | |
public void onAuthor( FeedParserState state, |
117 | |
String name, |
118 | |
String email, |
119 | 0 | String resource ) throws FeedParserException {} |
120 | |
|
121 | 0 | public void onAuthorEnd() throws FeedParserException {} |
122 | |
|
123 | |
public void onComments( FeedParserState state, |
124 | 0 | String resource ) throws FeedParserException {} |
125 | |
|
126 | 0 | public void onCommentsEnd() throws FeedParserException {} |
127 | |
|
128 | |
public void onCommentsFeed( FeedParserState state, |
129 | 0 | String resource ) throws FeedParserException {} |
130 | |
|
131 | 0 | public void onCommentsFeedEnd() throws FeedParserException {} |
132 | |
|
133 | |
|
134 | |
|
135 | |
public void onContentEncoded( FeedParserState state, |
136 | 0 | String value ) throws FeedParserException {} |
137 | |
|
138 | 0 | public void onContentEncodedEnd() throws FeedParserException {} |
139 | |
|
140 | |
public void onContentItem( FeedParserState state, |
141 | |
String format, |
142 | |
String encoding, |
143 | 0 | Element value ) throws FeedParserException {} |
144 | |
|
145 | 0 | public void onContentItemEnd() throws FeedParserException {} |
146 | |
|
147 | |
|
148 | |
|
149 | 0 | public void onXHTMLBody( FeedParserState state, Element value ) throws FeedParserException {} |
150 | |
|
151 | 0 | public void onXHTMLBodyEnd() throws FeedParserException {} |
152 | |
|
153 | |
|
154 | |
|
155 | |
public void onContent( FeedParserState state, |
156 | |
String type, |
157 | |
String format, |
158 | |
String encoding, |
159 | |
String mode, |
160 | |
String value, |
161 | 0 | boolean isSummary ) throws FeedParserException {} |
162 | |
|
163 | 0 | public void onContentEnd() throws FeedParserException {} |
164 | |
|
165 | |
} |