Package org.primefaces.model.file
Class AbstractUploadedFile<T>
java.lang.Object
org.primefaces.model.file.AbstractUploadedFile<T>
- All Implemented Interfaces:
Serializable,UploadedFile
- Direct Known Subclasses:
CommonsUploadedFile,NativeUploadedFile,NIOUploadedFile
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedAbstractUploadedFile(T source, String filename, Long sizeLimit, String webKitRelativePath) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]protected abstract InputStreamprotected abstract voidvoidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.primefaces.model.file.UploadedFile
delete, getContentType, getSize
-
Constructor Details
-
AbstractUploadedFile
protected AbstractUploadedFile() -
AbstractUploadedFile
-
-
Method Details
-
getFileName
- Specified by:
getFileNamein interfaceUploadedFile
-
getWebkitRelativePath
- Specified by:
getWebkitRelativePathin interfaceUploadedFile
-
getSource
-
getInputStream
- Specified by:
getInputStreamin interfaceUploadedFile- Throws:
IOException
-
getContent
public byte[] getContent()- Specified by:
getContentin interfaceUploadedFile
-
write
- Specified by:
writein interfaceUploadedFile- Throws:
Exception
-
getSourceInputStream
- Throws:
IOException
-
write
- Throws:
IOException
-