private void encodeObject ( StringBuffer result , Object value ) { if ( value != null ) { if ( value instanceof byte [ ] ) { result . append ( "[]" ) ; HexString . binToHex ( ( byte [ ] ) value , 0 , ( ( byte [ ] ) value ) . length , result ) ; } else URLEncode ( result , value . toString ( ) ) ; }
Encode an arbitrary value