org.eclipse.rdf4j.query.parser.serql

## Class SeRQLUtil

- java.lang.Object
- - org.eclipse.rdf4j.query.parser.serql.SeRQLUtil

-     public class SeRQLUtil
      extends Object

  SeRQL-related utility methods.
  Author:
    Arjohn Kampman

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SeRQLUtil()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static String` | `decodeString(String s)` Decodes an encoded SeRQL string.
    `static String` | `encodeString(String s)` Encodes the supplied string for inclusion as a 'normal' string in a SeRQL query.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SeRQLUtil

          public SeRQLUtil()

  - ### Method Detail

    - #### encodeString

          public static String encodeString(String s)

      Encodes the supplied string for inclusion as a 'normal' string in a SeRQL query.

    - #### decodeString

          public static String decodeString(String s)

      Decodes an encoded SeRQL string. Any \-escape sequences are substituted with their decoded value.
      Parameters:
        `s` - An encoded SeRQL string.
      Returns:
        The unencoded string.
      Throws:
        `IllegalArgumentException` - If the supplied string is not a correctly encoded SeRQL string.

Copyright © 2015-2021 Eclipse Foundation. All Rights Reserved.