/** * Returns a 32 encoded byte array of the given bytes. */ public static byte[] encode(byte[] bytes) { return bytes == null || bytes.length == 0 ? bytes : codec.encode(bytes); }
/** * Returns a base 32 encoded string of the given bytes. */ public static String encodeAsString(byte ... bytes) { if (bytes == null) return null; return bytes.length == 0 ? "" : CodecUtils.toStringDirect(codec.encode(bytes)); }
/** * @param bytes the bytes. * @return a 32 encoded byte array of the given bytes. hchar: compared to * Base32.encode(byte[]) of JakartaCommons-1.5, this routine is > 20x faster * on my MacAir. */ public static byte[] encode(byte[] bytes) { return bytes == null || bytes.length == 0 ? bytes : CODEC.encode(bytes); }
/** * Returns a 32 encoded byte array of the given bytes. */ public static byte[] encode(byte[] bytes) { return bytes == null || bytes.length == 0 ? bytes : codec.encode(bytes); }
/** * Returns a base 32 encoded string of the given bytes. */ public static String encodeAsString(byte ... bytes) { if (bytes == null) return null; return bytes.length == 0 ? "" : CodecUtils.toStringDirect(codec.encode(bytes)); }
/** * @param bytes the bytes. * @return a base 32 encoded string of the given bytes. */ public static String encodeAsString(byte... bytes) { if (bytes == null) { return null; } return bytes.length == 0 ? "" : CodecUtils.toStringDirect(CODEC.encode(bytes)); }
/** * @param bytes the bytes. * @return a 32 encoded byte array of the given bytes. hchar: compared to * Base32.encode(byte[]) of JakartaCommons-1.5, this routine is > 20x faster * on my MacAir. */ public static byte[] encode(byte[] bytes) { return bytes == null || bytes.length == 0 ? bytes : CODEC.encode(bytes); }
/** * @param bytes the bytes. * @return a 32 encoded byte array of the given bytes. hchar: compared to * Base32.encode(byte[]) of JakartaCommons-1.5, this routine is > 20x faster * on my MacAir. */ public static byte[] encode(byte[] bytes) { return bytes == null || bytes.length == 0 ? bytes : CODEC.encode(bytes); }
/** * Returns a 32 encoded byte array of the given bytes. */ public static byte[] encode(byte[] bytes) { return bytes == null || bytes.length == 0 ? bytes : codec.encode(bytes); }
/** * Returns a base 32 encoded string of the given bytes. */ public static String encodeAsString(byte ... bytes) { if (bytes == null) return null; return bytes.length == 0 ? "" : CodecUtils.toStringDirect(codec.encode(bytes)); }
/** * @param bytes the bytes. * @return a base 32 encoded string of the given bytes. */ public static String encodeAsString(byte... bytes) { if (bytes == null) { return null; } return bytes.length == 0 ? "" : CodecUtils.toStringDirect(CODEC.encode(bytes)); }
/** * @param bytes the bytes. * @return a base 32 encoded string of the given bytes. */ public static String encodeAsString(byte... bytes) { if (bytes == null) { return null; } return bytes.length == 0 ? "" : CodecUtils.toStringDirect(CODEC.encode(bytes)); }