Object | +--MimePart
| SUMMARY: Constructor | Properties | Methods | DETAIL: Constructor | Properties | Methods |
| Properties Summary | |
ByteArray |
content
The content of a MIME part as java ByteArray |
Number |
contentLength
The content length of a MIME part |
String |
contentType
The content type of a MIME part |
String |
eTag
The eTag of a MIME part header |
Date |
lastModified
The date header of a MIME part |
String |
name
The name header of a MIME part |
String |
text
The content of a MIME part as text |
| Methods Summary | |
String
|
getSubHeader(<String> header, <String> subHeaderName)
Get a sub-header from a header, e.g. |
String
|
normalizeFilename(<String> filename)
Normalize a upload file name. |
void
|
writeToFile(<String> dir,<String> name)
Writes the content of a MIME part to the local file system. |
| Properties Detail |
ByteArray content
Number contentLength
String contentType
String eTag
Date lastModified
String name
String text
| Method Detail |
String getSubHeader(<String> header, <String> subHeaderName)
header - as String, the header from which the sub-header should be returned
subHeaderName - as String, the sub-header that should be retrieved from the header
String normalizeFilename(<String> filename)
filename - as String, the filepath that is to be reduce to a filename
void writeToFile(<String> dir,<String> name)
dir - as String, the path to the directory where the file should be written
name - as String, the file name to be used when writting the file
| SUMMARY: Constructor | Properties | Methods | DETAIL: Constructor | Properties | Methods |