com.koushikdutta.async.http
Class FilePart

java.lang.Object
  extended by com.koushikdutta.async.http.Part
      extended by com.koushikdutta.async.http.StreamPart
          extended by com.koushikdutta.async.http.FilePart

public class FilePart
extends StreamPart


Field Summary
 
Fields inherited from class com.koushikdutta.async.http.Part
CONTENT_DISPOSITION
 
Constructor Summary
FilePart(java.lang.String name, java.io.File file)
           
 
Method Summary
protected  java.io.InputStream getInputStream()
           
 
Methods inherited from class com.koushikdutta.async.http.StreamPart
write
 
Methods inherited from class com.koushikdutta.async.http.Part
getContentType, getFilename, getName, getRawHeaders, isFile, length
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilePart

public FilePart(java.lang.String name,
                java.io.File file)
Method Detail

getInputStream

protected java.io.InputStream getInputStream()
                                      throws java.io.IOException
Specified by:
getInputStream in class StreamPart
Throws:
java.io.IOException