|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.feedparser.ContentDetector
public class ContentDetector
Given the RAW content of a URL, determine if we're looking at an RSS file or an HTML file. We also return the given RSS version or Atom version.
Constructor Summary | |
---|---|
ContentDetector()
|
Method Summary | |
---|---|
static ContentDetectorResult |
detect(String content)
Return true if the given content seems to be RSS. |
static boolean |
isAtomContent(String content)
|
static boolean |
isHTMLContent(String content)
Return true if this is RSS 2.0 content |
static boolean |
isRSS_0_9_0_Content(String content)
Return true if this is RSS 2.0 content |
static boolean |
isRSS_0_9_1_Content(String content)
Return true if this is RSS 2.0 content |
static boolean |
isRSS_0_9_2_Content(String content)
Return true if this is RSS 0.9.2 content |
static boolean |
isRSS_1_0_Content(String content)
Return true if this is RSS 1.0 content |
static boolean |
isRSS_2_0_Content(String content)
Return true if this is RSS 2.0 content |
static void |
main(String[] args)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContentDetector()
Method Detail |
---|
public static ContentDetectorResult detect(String content) throws Exception
Exception
public static boolean isRSS_1_0_Content(String content) throws Exception
Exception
public static boolean isRSS_0_9_1_Content(String content) throws Exception
Exception
public static boolean isRSS_0_9_2_Content(String content) throws Exception
Exception
public static boolean isRSS_2_0_Content(String content) throws Exception
Exception
public static boolean isRSS_0_9_0_Content(String content) throws Exception
Exception
public static boolean isAtomContent(String content) throws Exception
Exception
public static boolean isHTMLContent(String content) throws Exception
Exception
public static void main(String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |