Package de.xima.fc.gui.model.portal
Class TextUploadedFile
- java.lang.Object
-
- de.xima.fc.gui.model.portal.TextUploadedFile
-
- All Implemented Interfaces:
org.primefaces.model.file.UploadedFile
public final class TextUploadedFile extends Object implements org.primefaces.model.file.UploadedFile
AUploadedFile
with data from a text string.- Since:
- 8.2.0
- Author:
- XIMA Media GmbH
-
-
Constructor Summary
Constructors Constructor Description TextUploadedFile(String fileName, String textContent, Charset encoding, String contentType, long size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
byte[]
getContent()
String
getContentType()
String
getFileName()
InputStream
getInputStream()
long
getSize()
void
write(String filePath)
-
-
-
Method Detail
-
delete
public void delete()
- Specified by:
delete
in interfaceorg.primefaces.model.file.UploadedFile
-
getContent
public byte[] getContent()
- Specified by:
getContent
in interfaceorg.primefaces.model.file.UploadedFile
-
getContentType
public String getContentType()
- Specified by:
getContentType
in interfaceorg.primefaces.model.file.UploadedFile
-
getFileName
public String getFileName()
- Specified by:
getFileName
in interfaceorg.primefaces.model.file.UploadedFile
-
getInputStream
public InputStream getInputStream() throws IOException
- Specified by:
getInputStream
in interfaceorg.primefaces.model.file.UploadedFile
- Throws:
IOException
-
getSize
public long getSize()
- Specified by:
getSize
in interfaceorg.primefaces.model.file.UploadedFile
-
-