public class RssSniffer
extends java.lang.Object
| Constructor and Description |
|---|
RssSniffer() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isSniffedAsFeed(byte[] prefix)
Look for any of the following strings as top-level XML tags: <rss <feed <rdf:RDF
If they start at the beginning of the file, or are preceded by one or more <! or <?
tags, then firefox will read it as RSS.
|
public static boolean isSniffedAsFeed(byte[] prefix)