List of usage examples for java.lang String String
public String(StringBuilder builder)
From source file:Main.java
public static String decipher(String base64Str) { return new String(Base64.decode(base64Str.getBytes(), Base64.DEFAULT)); }
From source file:Main.java
public static String decode(String encodeStr) { return new String(Base64.decode(encodeStr, Base64.DEFAULT)); }
From source file:Main.java
public static byte uniteByte(byte src0, byte src1) { byte _b0 = Byte.decode("0x" + new String(new byte[] { src0 })).byteValue(); _b0 = (byte) (_b0 << 4); byte _b1 = Byte.decode("0x" + new String(new byte[] { src1 })).byteValue(); byte ret = (byte) (_b0 ^ _b1); return ret;/*from w w w. jav a 2 s .co m*/ }
From source file:Main.java
public static String deToStr(String str) { String deStr = new String(Base64.decode(str.getBytes(), Base64.DEFAULT)); return deStr; }
From source file:Main.java
public static String base64Tostring(String data) { return new String(Base64.decode(data, Base64.DEFAULT)); }
From source file:Main.java
public static String encode(byte[] bytes) throws Exception { return new String(Base64.encode(bytes, Base64.DEFAULT)); }
From source file:Main.java
public static String base64Encrypt(byte[] paramArrayOfByte) { return new String(Base64.encode(paramArrayOfByte, 0)); }
From source file:Main.java
private static final String decodeBase64String(String string) { return new String(Base64.decode(string, Base64.DEFAULT)); }
From source file:Main.java
public static String fromHex(String hex) { return new String(toByte(hex)); }
From source file:Main.java
public static String toString(byte[] data) { String str = null;/*from w w w . j a v a 2 s .c o m*/ try { str = new String(data); } catch (Exception e) { } return str; }