Class Overview
An entity whose content is retrieved from a file.
Summary
[Expand]
Inherited Methods |
From class
org.apache.http.entity.AbstractHttpEntity
|
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this Object .
|
boolean
|
equals(Object o)
Compares this instance with the specified object and indicates if they
are equal.
|
void
|
finalize()
Invoked when the garbage collector has detected that this instance is no longer reachable.
|
final
Class<?>
|
getClass()
Returns the unique instance of Class that represents this
object's class.
|
int
|
hashCode()
Returns an integer hash code for this object.
|
final
void
|
notify()
Causes a thread which is waiting on this object's monitor (by means of
calling one of the wait() methods) to be woken up.
|
final
void
|
notifyAll()
Causes all threads which are waiting on this object's monitor (by means
of calling one of the wait() methods) to be woken up.
|
String
|
toString()
Returns a string containing a concise, human-readable description of this
object.
|
final
void
|
wait()
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.
|
final
void
|
wait(long millis, int nanos)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait(long millis)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
|
From interface
org.apache.http.HttpEntity
abstract
void
|
consumeContent()
TODO: The name of this method is misnomer.
|
abstract
InputStream
|
getContent()
Creates a new InputStream object of the entity.
|
abstract
Header
|
getContentEncoding()
Obtains the Content-Encoding header, if known.
|
abstract
long
|
getContentLength()
Tells the length of the content, if known.
|
abstract
Header
|
getContentType()
Obtains the Content-Type header, if known.
|
abstract
boolean
|
isChunked()
Tells about chunked encoding for this entity.
|
abstract
boolean
|
isRepeatable()
Tells if the entity is capable to produce its data more than once.
|
abstract
boolean
|
isStreaming()
Tells whether this entity depends on an underlying stream.
|
abstract
void
|
writeTo(OutputStream outstream)
Writes the entity content to the output stream.
|
|
Fields
protected
final
File
file
Public Constructors
Public Methods
public
Object
clone
()
Creates and returns a copy of this Object
. The default
implementation returns a so-called "shallow" copy: It creates a new
instance of the same class and then copies the field values (including
object references) from this instance to the new instance. A "deep" copy,
in contrast, would also recursively clone nested objects. A subclass that
needs to implement this kind of cloning should call super.clone()
to create the new instance and then create deep copies of the nested,
mutable objects.
public
long
getContentLength
()
public
boolean
isRepeatable
()
public
boolean
isStreaming
()
Tells that this entity is not streaming.