org.apache.commons.feedparser
Class FeedFilter

java.lang.Object
  extended by org.apache.commons.feedparser.FeedFilter

public class FeedFilter
extends Object

Version:
$Id: FeedFilter.java 373614 2006-01-30 22:31:21Z mvdb $
Author:
Kevin A. Burton (burtonator)

Field Summary
static boolean DO_DECODE_ENTITIES
           
static boolean DO_REMOVE_LEADING_PROLOG
           
static HashMap LATIN1_ENTITIES
           
 
Constructor Summary
FeedFilter()
           
 
Method Summary
static void main(String[] args)
           
static byte[] parse(byte[] bytes)
          Deprecated. Specify an encoding with #parse( bytes[], encoding )
static byte[] parse(byte[] bytes, String encoding)
           
static byte[] parse(String content, String encoding)
          Parse out an input string of content.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DO_REMOVE_LEADING_PROLOG

public static boolean DO_REMOVE_LEADING_PROLOG

DO_DECODE_ENTITIES

public static boolean DO_DECODE_ENTITIES

LATIN1_ENTITIES

public static HashMap LATIN1_ENTITIES
Constructor Detail

FeedFilter

public FeedFilter()
Method Detail

parse

public static byte[] parse(byte[] bytes)
                    throws Exception
Deprecated. Specify an encoding with #parse( bytes[], encoding )

This is probably the wrong behavior. I shouldn't call this method I think because assuming a content type is bad form.

Throws:
Exception

parse

public static byte[] parse(byte[] bytes,
                           String encoding)
                    throws Exception
Throws:
Exception

parse

public static byte[] parse(String content,
                           String encoding)
                    throws Exception
Parse out an input string of content. http://wiki.apache.org/jakarta-commons/FeedParser_2fStringAllocationConsideredHelpful

Throws:
Exception

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.