org.apache.chemistry.opencmis.server.support.query
Class StringUtil

java.lang.Object
  extended by org.apache.chemistry.opencmis.server.support.query.StringUtil

public class StringUtil
extends Object


Constructor Summary
StringUtil()
           
 
Method Summary
static String unescape(String literal, String escapedChars)
          remove all escape sequences in a string and return unescaped string escape character is backslash \, so \\ --> \, \' --> ' additional escaped characters can be allowed in escapedChars
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringUtil

public StringUtil()
Method Detail

unescape

public static String unescape(String literal,
                              String escapedChars)
remove all escape sequences in a string and return unescaped string escape character is backslash \, so \\ --> \, \' --> ' additional escaped characters can be allowed in escapedChars

Parameters:
literal - String to unescape
escapedChars - set of allowed characters to be escaped with a backslash, if set to null then ' (quote) and \ (backslash) are allowed to be escaped
Returns:
unescaped literal or null if the literal is illegal


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.