public class InMemoryUploadedFile extends Object implements org.primefaces.model.UploadedFile
UploadedFile implementation for in-memory data (small image data).| Constructor and Description |
|---|
InMemoryUploadedFile(byte[] data,
String filename,
String contentType)
Create instance with fixed data.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getContents() |
String |
getContentType() |
String |
getFileName() |
InputStream |
getInputstream() |
long |
getSize() |
void |
write(String fileName) |
public String getFileName()
getFileName in interface org.primefaces.model.UploadedFilepublic InputStream getInputstream() throws IOException
getInputstream in interface org.primefaces.model.UploadedFileIOExceptionpublic long getSize()
getSize in interface org.primefaces.model.UploadedFilepublic byte[] getContents()
getContents in interface org.primefaces.model.UploadedFilepublic String getContentType()
getContentType in interface org.primefaces.model.UploadedFileCopyright © 2015 illucIT Software GmbH. All rights reserved.