question: static byte [ ] discardWhitespace ( byte [ ] data ) { byte groomedData [ ] = new byte [ data . length ] ; int bytesCopied = 0 ; for ( int i = 0 ; i < data . length ; i ++ ) { switch ( data [ i ] ) { case ( byte ) ' ' : case ( byte ) '\n' : case ( byte ) '\r' : case ( byte ) '\t' : break ; default : groomedData [ bytesCopied ++ ] = data [ i ] ; } } byte packedData [ ] = new byte [ bytesCopied ] ; System . arraycopy ( groomedData , 0 , packedData , 0 , bytesCopied ) ; return packedData ; }
target:  Discards any whitespace from a base-64 encoded block.