Class EncodeUtil


  • public final class EncodeUtil
    extends java.lang.Object
    Utilities related to various encoding schemes.
    Since:
    7.7.7
    Author:
    Vaadin Ltd
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String rfc5987Encode​(java.lang.String value)
      Encodes the given string to UTF-8 value-chars as defined in RFC5987 for use in e.g.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • rfc5987Encode

        public static java.lang.String rfc5987Encode​(java.lang.String value)
        Encodes the given string to UTF-8 value-chars as defined in RFC5987 for use in e.g. the Content-Disposition HTTP header.
        Parameters:
        value - the string to encode, not null
        Returns:
        the encoded string