Class Encoder

java.lang.Object
org.apache.olingo.odata2.core.commons.Encoder

public class Encoder extends Object
Encodes a Java String (in its internal UTF-16 encoding) into its percent-encoded UTF-8 representation according to RFC 3986 (with consideration of its predecessor RFC 2396).
  • Method Details

    • encode

      public static String encode(String value)
      Encodes a Java String (in its internal UTF-16 encoding) into its percent-encoded UTF-8 representation according to RFC 3986, suitable for parts of an OData path segment.
      Parameters:
      value - the Java String
      Returns:
      the encoded String