@SuppressWarnings("StatementWithEmptyBody")
    public static byte[] decode(final String input) {
        ByteArrayInputStream in = new ByteArrayInputStream(input.getBytes());
        ByteArrayOutputStream out = new ByteArrayOutputStream();
        try {
            while (decodeChunk(out, in)) {
                // do nothing
            }
        } catch (IOException ex) {
            throw new RuntimeException(ex);
        }

        return out.toByteArray();
    }
@ SuppressWarnings ( "StatementWithEmptyBody" ) public static byte [ ] decode ( final String input ) { ByteArrayInputStream in = new ByteArrayInputStream ( input . getBytes ( ) ) ; ByteArrayOutputStream out = new ByteArrayOutputStream ( ) ; try { while ( decodeChunk ( out , in ) ) { } } catch ( IOException ex ) { throw new RuntimeException ( ex ) ; } return out . toByteArray ( ) ; }
Decode a Base64 encoded string

@param input The string to decode
@return The data string