Save This Page
Home » commons-httpclient-3.1-src » org.apache.commons » httpclient » methods » [javadoc | source]
org.apache.commons.httpclient.methods
public class: ByteArrayRequestEntity [javadoc | source]
java.lang.Object
   org.apache.commons.httpclient.methods.ByteArrayRequestEntity

All Implemented Interfaces:
    RequestEntity

A RequestEntity that contains an array of bytes.
Constructor:
 public ByteArrayRequestEntity(byte[] content) 
 public ByteArrayRequestEntity(byte[] content,
    String contentType) 
    Creates a new entity with the given content and content type.
    Parameters:
    content - The content to set.
    contentType - The content type to set or null.
Method from org.apache.commons.httpclient.methods.ByteArrayRequestEntity Summary:
getContent,   getContentLength,   getContentType,   isRepeatable,   writeRequest
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.commons.httpclient.methods.ByteArrayRequestEntity Detail:
 public byte[] getContent() 
 public long getContentLength() 
 public String getContentType() 
 public boolean isRepeatable() 
 public  void writeRequest(OutputStream out) throws IOException