hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From oglu...@apache.org
Subject svn commit: r360491 - /jakarta/httpcomponents/trunk/http-core/src/java/org/apache/http/HttpEntity.java
Date Sun, 01 Jan 2006 15:37:16 GMT
Author: oglueck
Date: Sun Jan  1 07:37:11 2006
New Revision: 360491

URL: http://svn.apache.org/viewcvs?rev=360491&view=rev
Log:
doc

Modified:
    jakarta/httpcomponents/trunk/http-core/src/java/org/apache/http/HttpEntity.java

Modified: jakarta/httpcomponents/trunk/http-core/src/java/org/apache/http/HttpEntity.java
URL: http://svn.apache.org/viewcvs/jakarta/httpcomponents/trunk/http-core/src/java/org/apache/http/HttpEntity.java?rev=360491&r1=360490&r2=360491&view=diff
==============================================================================
--- jakarta/httpcomponents/trunk/http-core/src/java/org/apache/http/HttpEntity.java (original)
+++ jakarta/httpcomponents/trunk/http-core/src/java/org/apache/http/HttpEntity.java Sun Jan
 1 07:37:11 2006
@@ -47,6 +47,12 @@
     public static final String CONTENT_TYPE = "Content-Type";
     public static final String CONTENT_ENCODING = "Content-Encoding";
     
+    /**
+     * Tells if the entity is capable to produce its data more than once.
+     * A repeatable entity's getContent() and writeTo(OutputStream) methods
+     * can be called more than once whereas a non-repeatable entity's can not.
+     * @return true if the entity is repeatable, false otherwise.
+     */
     boolean isRepeatable();
 
     boolean isChunked();
@@ -57,6 +63,12 @@
     
     Header getContentEncoding();
     
+    /**
+     * Creates a new InputStream object of the entity. It is a programming error
+     * to return the same InputStream object more than once.
+     * @return a new input stream that returns the entity data.
+     * @throws IOException if the stream could not be created
+     */
     InputStream getContent() throws IOException;
     
     /**



Mime
View raw message