Build 1.0_r1(from source)

org.apache.http.util
Class EntityUtils

java.lang.Object
  extended by org.apache.http.util.EntityUtils

public final class EntityUtils
extends Object

Static helpers for dealing with entities.

Since:
4.0

Method Summary
static String getContentCharSet(HttpEntity entity)
           
static byte[] toByteArray(HttpEntity entity)
           
static String toString(HttpEntity entity)
           
static String toString(HttpEntity entity, String defaultCharset)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toByteArray

public static byte[] toByteArray(HttpEntity entity)
                          throws IOException
Throws:
IOException

getContentCharSet

public static String getContentCharSet(HttpEntity entity)
                                throws ParseException
Throws:
ParseException

toString

public static String toString(HttpEntity entity,
                              String defaultCharset)
                       throws IOException,
                              ParseException
Throws:
IOException
ParseException

toString

public static String toString(HttpEntity entity)
                       throws IOException,
                              ParseException
Throws:
IOException
ParseException

Build 1.0_r1(from source)

Please submit a feedback, bug or feature