private static void appendEncode ( CssFormatter formatter , byte [ ] bytes ) { for ( byte b : bytes ) { if ( ( b >= ' ' && b <= ' ' ) || ( b >= ' ' && b <= ' ' ) || ( b >= ' ' && b <= ' ' ) ) { formatter . append ( ( char ) b ) ; } else { switch ( b ) { case ' ' : case ' ' : case ' ' : case ' ' : formatter . append ( ( char ) b ) ; break ; default : formatter . append ( ' ' ) ; formatter . append ( Character . toUpperCase ( Character . forDigit ( ( b >> 4 ) & 0xF , 16 ) ) ) ; formatter . append ( Character . toUpperCase ( Character . forDigit ( b & 0xF , 16 ) ) ) ; } } } }
Append the bytes URL encoded .