@ 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 ( ) ; }
Decode a Base64 encoded string