Default properties and methods of objects of the
class Packages.helma.util.MimePart.
A MimePart object represents a MIME element and makes its
properties and contents available to the scripting environment.
Other than calling the Packages.helma.util.MimePart java class directly, there is no constructor to instantiate these objects.
Other than calling the Packages.helma.util.MimePart java class directly, there is no constructor to instantiate these objects.
see
The content length of a MIME part
The content type of a MIME part
The eTag of a MIME part header
An Java InputStream from which the body of the MIME part
can be read.
The content of a MIME part as java ByteArray
The content of a MIME part as text
The date header of a MIME part
The name header of a MIME part
Methods
Writes the content of a MIME part to the local file system.
Note that the file's current file extension is automaticaly added to the specified name argument.
Note that the file's current file extension is automaticaly added to the specified name argument.
parameters
String | dir | as String, the path to the directory where the file should be written |
String | name | as String, the file name to be used when writting the file |
returns
String the filepath of the written file |
Get a sub-header from a header, e.g. the charset from
Content-Type: text/plain; charset="UTF-8"
parameters
String | header | as String, the header from which the sub-header should be returned |
String | subHeaderName | as String, the sub-header that should be retrieved from the header |
returns
String |
Normalize a upload file name. Internet Explorer on Windows sends
the whole path, so we cut off everything before the actual name.
parameters
String | filename | as String, the filepath that is to be reduce to a filename |
returns
String |