@ Deprecated public static String encodePath ( String path ) { try { return URIUtil . encodePath ( path , "UTF-8" ) ; } catch ( URIException ex ) { throw new EsHadoopIllegalArgumentException ( "Cannot encode path segment [" + path + "]" , ex ) ; } }
Encodes characters in the string except for those allowed in an absolute path .