Package org.wso2.carbon.utils
Class FileItemDataSource
- java.lang.Object
-
- org.wso2.carbon.utils.FileItemDataSource
-
- All Implemented Interfaces:
DataSource
public class FileItemDataSource extends Object implements DataSource
-
-
Constructor Summary
Constructors Constructor Description FileItemDataSource(org.apache.commons.fileupload.FileItem fileItem)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()StringgetContentType()InputStreamgetInputStream()StringgetName()OutputStreamgetOutputStream()
-
-
-
Method Detail
-
getContentType
public String getContentType()
- Specified by:
getContentTypein interfaceDataSource
-
getInputStream
public InputStream getInputStream() throws IOException
- Specified by:
getInputStreamin interfaceDataSource- Throws:
IOException
-
getName
public String getName()
- Specified by:
getNamein interfaceDataSource
-
getOutputStream
public OutputStream getOutputStream() throws IOException
- Specified by:
getOutputStreamin interfaceDataSource- Throws:
IOException
-
delete
public void delete()
-
-