You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2005/02/04 20:39:21 UTC
svn commit: r151394 -
jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/FeedFilter.java
Author: burton
Date: Fri Feb 4 11:39:21 2005
New Revision: 151394
URL: http://svn.apache.org/viewcvs?view=rev&rev=151394
Log:
dox for string allocation issues...
Modified:
jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/FeedFilter.java
Modified: jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/FeedFilter.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/FeedFilter.java?view=diff&r1=151393&r2=151394
==============================================================================
--- jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/FeedFilter.java (original)
+++ jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/FeedFilter.java Fri Feb 4 11:39:21 2005
@@ -26,7 +26,7 @@
/**
*
* @author <a href="mailto:burton@apache.org">Kevin A. Burton (burtonator)</a>
- * @version $Id: FeedFilter.java,v 1.7 2005/01/23 09:49:50 burton Exp $
+ * @version $Id$
*/
public class FeedFilter {
@@ -55,6 +55,13 @@
}
+ /**
+ * Parse out an input string of content.
+ *
+ * http://wiki.apache.org/jakarta-commons/FeedParser_2fStringAllocationConsideredHelpful
+ *
+ * @author <a href="mailto:burton1@rojo.com">Kevin A. Burton</a>
+ */
public static byte[] parse( String content, String encoding )
throws Exception {
@@ -67,6 +74,12 @@
//decode HTML entities that are referenced.
if ( DO_DECODE_ENTITIES )
content = doDecodeEntities( content );
+
+ //TODO: undeclared namespace prefixes should be expanded to their common
+ //form. 'rdf, 'atom', 'xhtml' etc. Considering that they're will only be
+ //a handful H and then 4^36 different possibilities the probability will
+ //only be H in 4^36 which is pretty good that we won't have a false
+ //positive.
return content.getBytes( encoding );
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org