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, setFileTypeMapfile - Instance of fileUESIORTExceptionfile - Instance of filename - File name to be used instead of name from given filepath - Path to filegetName in interface javax.activation.DataSourcegetName in class javax.activation.FileDataSourcegetSize in interface UESStreamSource