Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.myfaces.custom.fileupload.UploadedFileDefaultImplBase
org.apache.myfaces.custom.fileupload.UploadedFileDefaultMemoryImpl
public class UploadedFileDefaultMemoryImpl
extends UploadedFileDefaultImplBase
Constructor Summary | |
|
Method Summary | |
byte[] |
|
InputStream |
|
long |
|
Methods inherited from class org.apache.myfaces.custom.fileupload.UploadedFileDefaultImplBase | |
getBytes , getContentType , getInputStream , getName , getSize |
public UploadedFileDefaultMemoryImpl(FileItem fileItem) throws IOException
public byte[] getBytes()
Answer the uploaded file contents.
- Specified by:
- getBytes in interface UploadedFile
- Overrides:
- getBytes in interface UploadedFileDefaultImplBase
- Returns:
- file contents
public InputStream getInputStream() throws IOException
Answer the uploaded file contents input stream
- Specified by:
- getInputStream in interface UploadedFile
- Overrides:
- getInputStream in interface UploadedFileDefaultImplBase
- Returns:
- InputStream
public long getSize()
Answer the size of this file.
- Specified by:
- getSize in interface UploadedFile
- Overrides:
- getSize in interface UploadedFileDefaultImplBase
- Returns:
- long