public class UESFileSource extends javax.activation.FileDataSource implements UESStreamSource
UESStreamSource
for File
.Modifier and Type | Field and Description |
---|---|
private java.lang.String |
name
File name.
|
private long |
size
File size.
|
Constructor and Description |
---|
UESFileSource(java.io.File file)
Creates new instance of UESFileSource.
|
UESFileSource(java.io.File file,
Creates new instance of UESFileSource.
|
UESFileSource(java.lang.String path)
Creates new instance of UESFileSource.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
long |
getSize()
Returns data size in bytes.
|
getContentType, getFile, getInputStream, getOutputStream, setFileTypeMap
file
- Instance of fileUESIORTException
file
- Instance of filename
- File name to be used instead of name from given filepath
- Path to filegetName
in interface javax.activation.DataSource
getName
in class javax.activation.FileDataSource
getSize
in interface UESStreamSource