You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by se...@apache.org on 2008/12/01 15:18:44 UTC
svn commit: r722078 -
/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/util/EntityUtils.java
Author: sebb
Date: Mon Dec 1 06:18:43 2008
New Revision: 722078
URL: http://svn.apache.org/viewvc?rev=722078&view=rev
Log:
Document ParseException
Modified:
httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/util/EntityUtils.java
Modified: httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/util/EntityUtils.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/util/EntityUtils.java?rev=722078&r1=722077&r2=722078&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/util/EntityUtils.java (original)
+++ httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/util/EntityUtils.java Mon Dec 1 06:18:43 2008
@@ -98,7 +98,7 @@
*
* @param entity must not be null
* @return the character set, or null if not found
- * @throws ParseException
+ * @throws ParseException if header elements cannot be parsed
* @throws IllegalArgumentException if entity is null
*/
public static String getContentCharSet(final HttpEntity entity)
@@ -128,6 +128,7 @@
* @param entity must not be null
* @param defaultCharset character set to be applied if none found in the entity
* @return the entity content as a Stting
+ * @throws ParseException if header elements cannot be parsed
* @throws IllegalArgumentException if entity is null or if content length > Integer.MAX_VALUE
* @throws IOException if an error occurs reading the input stream
*/
@@ -175,6 +176,7 @@
*
* @param entity
* @return String containing the content.
+ * @throws ParseException if header elements cannot be parsed
* @throws IllegalArgumentException if entity is null or if content length > Integer.MAX_VALUE
* @throws IOException if an error occurs reading the input stream
*/