List of usage examples for java.lang String String
public String(StringBuilder builder)
From source file:Main.java
public static String hexToString(final String hexString) { return new String(hexToBytes(hexString)); }
From source file:Main.java
public static String toString(byte[] data) { return (data == null) ? null : new String(data); }
From source file:Main.java
public static String decode(String str) { return new String(Base64.decode(str, Base64.DEFAULT)); }
From source file:Main.java
public static String encrypt(String str) { return new String(Base64.encode(str.getBytes(), Base64.DEFAULT)); }
From source file:Main.java
public static String decode(String content) { return new String(Base64.decode(content.getBytes(), Base64.DEFAULT)); }
From source file:Main.java
public static String getBASE64(String s) { return new String(Base64.encode(s.getBytes(), Base64.DEFAULT)); }
From source file:Main.java
private static String getResourceName(String resourceName) { String rn = new String(resourceName.substring(0, 1).toLowerCase() + resourceName.substring(1)); rn = rn.replaceAll(" ", ""); for (int i = 'A'; i <= 'Z'; i++) { char ch = (char) i; String s = new String(ch + ""); rn = rn.replaceAll(s, "_" + s.toLowerCase()); }// w ww. j a v a2 s. co m return rn; }
From source file:Main.java
public static String decodeHexString(char[] data) { return new String(decodeHex(data)); }
From source file:Main.java
public static String base64Decode(String msg) { return new String(Base64.decode(msg, Base64.DEFAULT)); }
From source file:Main.java
public static String bytesToString(byte[] bytes) { return new String(Base64.decode(bytes, Base64.DEFAULT)); }