Package org.silverpeas.core.web.http
Class RequestFile
- java.lang.Object
-
- org.silverpeas.core.web.http.RequestFile
-
public class RequestFile extends Object
A file embedded into the body of an HTTP request.- Author:
- Yohann Chastagnier
-
-
Constructor Summary
Constructors Constructor Description RequestFile(org.apache.commons.fileupload.FileItem fileItem)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getContentType()
InputStream
getInputStream()
String
getName()
long
getSize()
String
getString()
void
writeTo(File file)
void
writeTo(OutputStream outputStream)
-
-
-
Method Detail
-
getName
public String getName()
-
getSize
public long getSize()
-
getContentType
public String getContentType()
-
getInputStream
public InputStream getInputStream()
-
getString
public String getString()
-
writeTo
public void writeTo(OutputStream outputStream) throws IOException
- Throws:
IOException
-
-