se.datadosen.util.httpClient
Class FilePart

java.lang.Object
  extended by se.datadosen.util.httpClient.Part
      extended by se.datadosen.util.httpClient.FilePart

public class FilePart
extends Part


Field Summary
 
Fields inherited from class se.datadosen.util.httpClient.Part
name
 
Constructor Summary
FilePart(java.lang.String name, java.io.File file)
           
FilePart(java.lang.String name, java.lang.String fileName, byte[] content)
           
 
Method Summary
protected  byte[] doGetContent()
           
 long getContentLength()
           
 
Methods inherited from class se.datadosen.util.httpClient.Part
getContent, getName
 
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)
         throws java.io.IOException
Throws:
java.io.IOException

FilePart

public FilePart(java.lang.String name,
                java.lang.String fileName,
                byte[] content)
Method Detail

getContentLength

public long getContentLength()
Overrides:
getContentLength in class Part

doGetContent

protected byte[] doGetContent()
Specified by:
doGetContent in class Part