* @deprecated LDAPSortControl response controls are now automatically
* instantiated.
*/
public static String parseResponse( LDAPControl[] controls, int[] results ) {
String attr = null;
LDAPControl sort = null;
/* See if there is a sort control in the array */
for( int i = 0; (controls != null) && (i < controls.length); i++ ) {
if ( controls[i].getID().equals( SORTRESPONSE ) ) {
sort = controls[i];
break;
}
}
if ( sort != null ) {
/* Suck out the data and return it */
ByteArrayInputStream inStream =
new ByteArrayInputStream( sort.getValue() );
BERSequence ber = new BERSequence();
JDAPBERTagDecoder decoder = new JDAPBERTagDecoder();
int[] nRead = new int[1];
nRead[0] = 0;
try {