## MimePart

    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

### content

    ByteArray content

The content of a MIME part as java ByteArray

### contentLength

    Number contentLength

The content length of a MIME part

### contentType

    String contentType

The content type of a MIME part

### eTag

    String eTag

The eTag of a MIME part header

### lastModified

    Date lastModified

The date header of a MIME part

### name

    String name

The name header of a MIME part

### text

    String text

The content of a MIME part as text

Method Detail

### getSubHeader

    String getSubHeader(<String> header, <String> subHeaderName)

Get a sub-header from a header, e.g. the charset from Content-Type: text/plain; charset="UTF-8"

Parameters:

`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

Returns:

String

### normalizeFilename

    String normalizeFilename(<String> filename)

Normalize a upload file name. Internet Explorer on Windows sends the whole path, so we cut off everything before the actual name.

Parameters:

`filename` - as String, the filepath that is to be reduce to a filename

Returns:

String

### writeToFile

    void writeToFile(<String> dir,<String> name)

Writes the content of a MIME part to the local file system.

Parameters:

`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

Documentation generated by JSDoc on Thu Apr 5 01:59:00 2007