Home » HttpComponents-Core-4.0.1 » org.apache.http.entity » [javadoc | source]
org.apache.http.entity
public class: FileEntity [javadoc | source]
java.lang.Object
   org.apache.http.entity.AbstractHttpEntity
      org.apache.http.entity.FileEntity

All Implemented Interfaces:
    Cloneable, HttpEntity

Direct Known Subclasses:
    FileNIOEntity

A self contained, repeatable entity that obtains its content from a file.
Field Summary
protected final  File file     
Fields inherited from org.apache.http.entity.AbstractHttpEntity:
contentType,  contentEncoding,  chunked
Constructor:
 public FileEntity(File file,
    String contentType) 
Method from org.apache.http.entity.FileEntity Summary:
clone,   getContent,   getContentLength,   isRepeatable,   isStreaming,   writeTo
Methods from org.apache.http.entity.AbstractHttpEntity:
consumeContent,   getContentEncoding,   getContentType,   isChunked,   setChunked,   setContentEncoding,   setContentEncoding,   setContentType,   setContentType
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.http.entity.FileEntity Detail:
 public Object clone() throws CloneNotSupportedException 
 public InputStream getContent() throws IOException 
 public long getContentLength() 
 public boolean isRepeatable() 
 public boolean isStreaming() 
    Tells that this entity is not streaming.
 public  void writeTo(OutputStream outstream) throws IOException