/** * Decodes data from Base64 notation, automatically * detecting gzip-compressed data and decompressing it. * * @param s the string to decode * @return the decoded data * @since 1.4 */ public static byte[] decode(final String s) { return Base64.decode(s, Base64.NO_OPTIONS); }
byte[] objBytes = Base64.decode(encodedObject);
bytes = Base64.decode(bytes, 0, bytes.length, options);
for (int i1 = 0; i1 < data.length; i1++) { String dataConverted = convertJsonValue(data[i1], String.class).toString(); try (ObjectInputStreamWithClassLoader ois = new ObjectInputStreamWithClassLoader(new ByteArrayInputStream(Base64.decode(dataConverted)))) { ois.setWhiteList("java.util,java.lang,javax.management"); cds[i1] = (CompositeDataSupport) ois.readObject();
/** * Decodes data from Base64 notation, automatically * detecting gzip-compressed data and decompressing it. * * @param s the string to decode * @return the decoded data * @since 1.4 */ public static byte[] decode(final String s) { return Base64.decode(s, Base64.NO_OPTIONS); }
/** * Decodes data from Base64 notation, automatically * detecting gzip-compressed data and decompressing it. * * @param s the string to decode * @return the decoded data * @since 1.4 */ public static byte[] decode(final String s) { return Base64.decode(s, Base64.NO_OPTIONS); }
/** * Decodes data from Base64 notation, automatically * detecting gzip-compressed data and decompressing it. * * @param s the string to decode * @return the decoded data * @since 1.4 */ public static byte[] decode(final String s) { return Base64.decode(s, Base64.NO_OPTIONS); }
/** * Decodes data from Base64 notation, automatically * detecting gzip-compressed data and decompressing it. * * @param s the string to decode * @return the decoded data * @since 1.4 */ public static byte[] decode(final String s) { return Base64.decode(s, Base64.NO_OPTIONS); }
/** * Decodes data from Base64 notation, automatically * detecting gzip-compressed data and decompressing it. * * @param s the string to decode * @return the decoded data * @since 1.4 */ public static byte[] decode(final String s) { return Base64.decode(s, Base64.NO_OPTIONS); }
private static byte[] decode(String data) { return Base64.decode(data, Base64.DONT_BREAK_LINES | Base64.URL_SAFE); }
/** * Decodes data from Base64 notation, automatically * detecting gzip-compressed data and decompressing it. * * @param s the string to decode * @return the decoded data * @since 1.4 */ public static byte[] decode(final String s) { return Base64.decode(s, Base64.NO_OPTIONS); }
private static byte[] decode(final String data) { return Base64.decode(data, Base64.DONT_BREAK_LINES | Base64.URL_SAFE); }
private static byte[] decode(final String data) { return Base64.decode(data, Base64.DONT_BREAK_LINES | Base64.URL_SAFE); }
private static byte[] decode(String data) { return Base64.decode(data, Base64.DONT_BREAK_LINES | Base64.URL_SAFE); }
byte[] objBytes = Base64.decode(encodedObject);
byte[] objBytes = Base64.decode(encodedObject);
byte[] objBytes = Base64.decode(encodedObject);
byte[] objBytes = Base64.decode(encodedObject);
byte[] objBytes = Base64.decode(encodedObject);
@Before public void before() { BYTE_ENCODE = Unpooled.wrappedBuffer(Base64.decode(STRING_ENCODE, Base64.DONT_BREAK_LINES | Base64.URL_SAFE)); // some extra caution here, nothing else, to make sure we would get the same encoding back Assert.assertEquals(STRING_ENCODE, encodeString(BYTE_ENCODE.array())); BYTE_ENCODE.readerIndex(0).writerIndex(BYTE_ENCODE.capacity()); }