Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Apache SOAP API Reference
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.soap.util.mime
Class MimeUtils

    java.lang.Object
      |
      +--org.apache.soap.util.mime.MimeUtils

public class MimeUtils
extends java.lang.Object

Mime-related utility functions.

Author:
  Wouter Cloetens (wouter@mind.be)

Constructor Summary
`MimeUtils()`

Method Summary
`static java.lang.String` | `decode(java.lang.String s)`
`static java.lang.String` | `getEncoding(java.lang.String type, java.lang.String defaultEncoding)` Extract a Java encoding from a Content-Type's MIME character set.
`static java.lang.String` | `getUniqueValue()` Get a unique value.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### MimeUtils

    public MimeUtils()

Method Detail

### getUniqueValue

    public static java.lang.String getUniqueValue()

  Get a unique value. Similar to javax.mail.internet.UniqueValue, this implementation generates a unique value by concatenating a newly created object's `hashCode()`, the current time (in milliseconds), and this system's hostname generated by `InternetAddress.getLocalAddress()`.

### getEncoding

    public static java.lang.String getEncoding(java.lang.String type,
                                               java.lang.String defaultEncoding)

  Extract a Java encoding from a Content-Type's MIME character set.

### decode

    public static java.lang.String decode(java.lang.String s)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Apache SOAP API Reference
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001 Apache XML Project. All Rights Reserved.