public static String decode(String string) { return StrUtils.decodeHex(string, '%') ; }
public static String decode(String string) { return StrUtils.decodeHex(string, '%') ; }
public static String decode(String string) { return StrUtils.decodeHex(string, '%') ; }
public static void main(String...args) { for ( String x : args) { String y = StrUtils.decodeHex(x, '%') ; System.out.println(y) ; // String s2 = URLDecoder.decode(x, "utf-8") ; // System.out.println(s2) ; } } }
public static void main(String...args) { for ( String x : args) { String y = StrUtils.decodeHex(x, '%') ; System.out.println(y) ; // String s2 = URLDecoder.decode(x, "utf-8") ; // System.out.println(s2) ; } } }
public static void main(String...args) { for ( String x : args) { String y = StrUtils.decodeHex(x, '%') ; System.out.println(y) ; // String s2 = URLDecoder.decode(x, "utf-8") ; // System.out.println(s2) ; } } }
private /*public*/ static Node decode(String s, PrefixMapping pmap) { if ( s.startsWith("_:") ) { s = s.substring(2) ; return NodeFactory.createBlankNode(s) ; } if ( s.startsWith("<") ) { s = s.substring(1,s.length()-1) ; s = StrUtils.decodeHex(s, MarkerChar) ; return NodeFactory.createURI(s) ; } try { // SSE invocation is expensive (??). // Try TokenizerText? // Use for literals only. Node n = SSE.parseNode(s, pmap) ; return n ; } catch (SSEParseException ex) { Log.error(NodeLib.class, "decode: Failed to parse: "+s) ; throw ex ; } }
str = StrUtils.decodeHex(str, MarkerChar) ; return NodeFactory.createURI(str) ;
static void test(String x, String z) { String y = StrUtils.encodeHex(x, marker, esc) ; if ( z != null ) assertEquals(z, y) ; String x2 = StrUtils.decodeHex(y, marker) ; assertEquals(x, x2) ; }