List of utility methods to do Byte Array Decode
byte[] | decode(byte[] source, int off, int len, byte[] decodabet) Decodes Base64 content using the supplied decodabet and returns the decoded byte array. int len34 = len * 3 / 4; byte[] outBuff = new byte[2 + len34]; int outBuffPosn = 0; byte[] b4 = new byte[4]; int b4Posn = 0; int i = 0; byte sbiCrop = 0; byte sbiDecode = 0; ... |
byte[] | decode(byte[] source, int off, int len, byte[] decodabet) Decodes Base64 content using the supplied decodabet and returns the decoded byte array. int len34 = len * 3 / 4; byte[] outBuff = new byte[2 + len34]; int outBuffPosn = 0; byte[] b4 = new byte[4]; int b4Posn = 0; int i = 0; byte sbiCrop = 0; byte sbiDecode = 0; ... |
byte[] | decode(byte[] source, int off, int len, byte[] decodabet) Decodes Base64 content using the supplied decodabet and returns the decoded byte array. int len34 = len * 3 / 4; byte[] outBuff = new byte[2 + len34]; int outBuffPosn = 0; byte[] b4 = new byte[4]; int b4Posn = 0; int i = 0; byte sbiCrop = 0; byte sbiDecode = 0; ... |
int | decode4to3(byte[] source, int srcOffset, byte[] destination, int destOffset, byte[] decodabet) Decodes four bytes from array source and writes the resulting bytes (up to three of them) to destination. if (source[srcOffset + 2] == EQUALS_SIGN) { int outBuff = ((decodabet[source[srcOffset]] << 24) >>> 6) | ((decodabet[source[srcOffset + 1]] << 24) >>> 12); destination[destOffset] = (byte) (outBuff >>> 16); return 1; } else if (source[srcOffset + 3] == EQUALS_SIGN) { int outBuff = ((decodabet[source[srcOffset]] << 24) >>> 6) | ((decodabet[source[srcOffset + 1]] << 24) >>> 12) ... |
int | decode4to3(byte[] source, int srcOffset, byte[] destination, int destOffset, byte[] decodabet) Decodes four bytes from array source and writes the resulting bytes (up to three of them) to destination. if (source[srcOffset + 2] == EQUALS_SIGN) { int outBuff = ((decodabet[source[srcOffset]] << 24) >>> 6) | ((decodabet[source[srcOffset + 1]] << 24) >>> 12); destination[destOffset] = (byte) (outBuff >>> 16); return 1; } else if (source[srcOffset + 3] == EQUALS_SIGN) { int outBuff = ((decodabet[source[srcOffset]] << 24) >>> 6) | ((decodabet[source[srcOffset + 1]] << 24) >>> 12) ... |
int | decode4to3(byte[] source, int srcOffset, byte[] destination, int destOffset, byte[] decodabet) Decodes four bytes from array source and writes the resulting bytes (up to three of them) to destination. if (source[srcOffset + 2] == EQUALS_SIGN) { int outBuff = ((decodabet[source[srcOffset]] << 24) >>> 6) | ((decodabet[source[srcOffset + 1]] << 24) >>> 12); destination[destOffset] = (byte) (outBuff >>> 16); return 1; } else if (source[srcOffset + 3] == EQUALS_SIGN) { int outBuff = ((decodabet[source[srcOffset]] << 24) >>> 6) | ((decodabet[source[srcOffset + 1]] << 24) >>> 12) ... |
byte[] | decodeWebSafe(String s) Decodes data from web safe Base64 notation. byte[] bytes = s.getBytes(); return decodeWebSafe(bytes, 0, bytes.length); |
byte[] | decodeWebSafe(String s) Decodes data from web safe Base64 notation. byte[] bytes = s.getBytes(); return decodeWebSafe(bytes, 0, bytes.length); |
byte[] | decodeWebSafe(byte[] source) Decodes web safe Base64 content in byte array format and returns the decoded data. return decodeWebSafe(source, 0, source.length);
|
byte[] | decodeWebSafe(byte[] source) Decodes web safe Base64 content in byte array format and returns the decoded data. return decodeWebSafe(source, 0, source.length);
|