api

http4k / org.apache.commons.fileupload.util.mime / MimeUtility / decodeText

decodeText

static fun decodeText(text: String!): String!

Decode a string of text obtained from a mail header into its proper form. The text generally will consist of a string of tokens, some of which may be encoded using base64 encoding.

Parameters

text - String!: The text to decode.

Exceptions

UnsupportedEncodingException - if the detected encoding in the input text is not supported.

Return String!: The decoded text string.