|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Object | +--org.apache.commons.feedparser.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(java.lang.String content)
Return true if the given content seems to be RSS. |
static boolean |
isAtomContent(java.lang.String content)
|
static boolean |
isHTMLContent(java.lang.String content)
Return true if this is RSS 2.0 content |
static boolean |
isRSS_0_9_0_Content(java.lang.String content)
Return true if this is RSS 2.0 content |
static boolean |
isRSS_0_9_1_Content(java.lang.String content)
Return true if this is RSS 2.0 content |
static boolean |
isRSS_0_9_2_Content(java.lang.String content)
Return true if this is RSS 0.9.2 content |
static boolean |
isRSS_1_0_Content(java.lang.String content)
Return true if this is RSS 1.0 content |
static boolean |
isRSS_2_0_Content(java.lang.String content)
Return true if this is RSS 2.0 content |
static void |
main(java.lang.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(java.lang.String content)
throws java.lang.Exception
java.lang.Exception
public static boolean isRSS_1_0_Content(java.lang.String content)
throws java.lang.Exception
java.lang.Exception
public static boolean isRSS_0_9_1_Content(java.lang.String content)
throws java.lang.Exception
java.lang.Exception
public static boolean isRSS_0_9_2_Content(java.lang.String content)
throws java.lang.Exception
java.lang.Exception
public static boolean isRSS_2_0_Content(java.lang.String content)
throws java.lang.Exception
java.lang.Exception
public static boolean isRSS_0_9_0_Content(java.lang.String content)
throws java.lang.Exception
java.lang.Exception
public static boolean isAtomContent(java.lang.String content)
throws java.lang.Exception
java.lang.Exception
public static boolean isHTMLContent(java.lang.String content)
throws java.lang.Exception
java.lang.Exceptionpublic static void main(java.lang.String[] args)
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||