List of utility methods to do String Decode
byte[] | decode(@Nonnull final String input) decode if (input.length() == 0) return new byte[0]; final byte[] input43 = new byte[input.length()]; for (int i = 0; i < input.length(); ++i) { final char c = input.charAt(i); int digit43 = -1; if (c >= 0 && c < 128) digit43 = INDEXES[c]; ... |
byte[] | decode(@Nonnull final String input) decode if (input.length() == 0) return new byte[0]; final byte[] input43 = new byte[input.length()]; for (int i = 0; i < input.length(); ++i) { final char c = input.charAt(i); int digit43 = -1; if (c >= 0 && c < 128) digit43 = INDEXES[c]; ... |
byte[] | decode(@Nonnull final String input) decode if (input.length() == 0) return new byte[0]; final byte[] input43 = new byte[input.length()]; for (int i = 0; i < input.length(); ++i) { final char c = input.charAt(i); int digit43 = -1; if (c >= 0 && c < 128) digit43 = INDEXES[c]; ... |
byte[] | decode(String s) Decodes data from Base64 notation. byte[] bytes = s.getBytes(); return decode(bytes, 0, bytes.length); |
byte[] | decode(String str, int flags) Decode the Base64-encoded data in input and return the data in a new byte array. return decode(str.getBytes(), flags);
|
byte[] | decodeWebSafe(String s) Decodes data from web safe Base64 notation. byte[] bytes = s.getBytes(); return decodeWebSafe(bytes, 0, bytes.length); |
String | decode(String sourceStr, String compareStr, String returnStr) decode return decode(sourceStr, compareStr, returnStr, sourceStr);
|
String | decode(String sourceStr, String compareStr, String returnStr, String defaultStr) decode if (sourceStr == null && compareStr == null) { return returnStr; if (sourceStr == null && compareStr != null) { return defaultStr; if (sourceStr.trim().equals(compareStr)) { return returnStr; ... |
byte[] | decode(String str) decode StringBuffer sb = new StringBuffer(); byte[] data = str.getBytes("US-ASCII"); int len = data.length; int i = 0; int b1, b2, b3, b4; while (i < len) { do { b1 = base64DecodeChars[data[i++]]; ... |
byte[] | decode(String str) decode byte[] data = str.getBytes(); int len = data.length; ByteArrayOutputStream buf = new ByteArrayOutputStream(len); int i = 0; int b1, b2, b3, b4; while (i < len) { do { b1 = base64DecodeChars[data[i++]]; ... |