private class MultipartRequest.MultipartFileSource extends UESFileSource
UESFileSource allowing to create file source
for data not physically stored on disk.| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
contentType |
private byte[] |
data
Raw in memory data.
|
private java.io.File |
file
Data stored in file.
|
private java.lang.String |
name
Name of file.
|
| Modifier | Constructor and Description |
|---|---|
private |
MultipartRequest.MultipartFileSource(byte[] data, |
private |
MultipartRequest.MultipartFileSource(java.io.File file, |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getContentType() |
java.io.File |
getFile() |
java.io.InputStream |
getInputStream() |
java.lang.String |
getName() |
java.io.OutputStream |
getOutputStream() |
long |
getSize()
Returns data size in bytes.
|
getInputStream in interface javax.activation.DataSourcegetInputStream in class javax.activation.FileDataSourcejava.io.IOExceptiongetOutputStream in interface javax.activation.DataSourcegetOutputStream in class javax.activation.FileDataSourcejava.io.IOExceptiongetContentType in interface javax.activation.DataSourcegetContentType in class javax.activation.FileDataSourceUESFileSourcegetName in interface javax.activation.DataSourcegetName in class UESFileSourcegetFile in class javax.activation.FileDataSourceUESFileSourcegetSize in interface UESStreamSourcegetSize in class UESFileSource