public class UploadedFileDefaultFileImpl extends UploadedFileDefaultImplBase
| Constructor and Description |
|---|
UploadedFileDefaultFileImpl(org.apache.commons.fileupload.FileItem fileItem) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes()
Answer the uploaded file contents.
|
java.io.InputStream |
getInputStream()
Answer the uploaded file contents input stream
|
long |
getSize()
Answer the size of this file.
|
getContentType, getNamepublic UploadedFileDefaultFileImpl(org.apache.commons.fileupload.FileItem fileItem)
throws java.io.IOException
java.io.IOExceptionpublic byte[] getBytes()
throws java.io.IOException
getBytes in interface UploadedFilegetBytes in class UploadedFileDefaultImplBasejava.io.IOExceptionpublic java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in interface UploadedFilegetInputStream in class UploadedFileDefaultImplBasejava.io.IOExceptionpublic long getSize()
getSize in interface UploadedFilegetSize in class UploadedFileDefaultImplBase