1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package com.sun.syndication.io.impl;
18
19 import org.jdom.DocType;
20 import org.jdom.Document;
21 import org.jdom.Element;
22
23 /***
24 * Feed Generator for RSS 0.91
25 * <p/>
26 *
27 * @author Elaine Chien
28 *
29 */
30 public class RSS091NetscapeGenerator extends RSS091UserlandGenerator {
31 private String _version;
32
33 public RSS091NetscapeGenerator() {
34 this("rss_0.91N","0.91");
35 }
36
37 protected RSS091NetscapeGenerator(String type,String version) {
38 super(type,version);
39 }
40
41 protected Document createDocument(Element root) {
42 Document doc = new Document(root);
43 DocType docType = new DocType(RSS091NetscapeParser.ELEMENT_NAME,
44 RSS091NetscapeParser.PUBLIC_ID,
45 RSS091NetscapeParser.SYSTEM_ID);
46 doc.setDocType(docType);
47 return doc;
48 }
49
50 protected String getTextInputLabel() {
51 return "textinput";
52 }
53
54 /***
55 * To be overriden by RSS 0.91 Netscape and RSS 0.94
56 */
57 protected boolean isHourFormat24() {
58 return false;
59 }
60
61 }