binaries = new HashSet( binaryArray.length );
for ( int ii = 0; ii < binaryArray.length; ii++ )
{
AttributeType type = attributeRegistry.lookup( binaryArray[ii] );
binaries.add( type );
}
}
/*
* start converting values of attributes to byte[]s which are not
* human readable and those that are in the binaries set
*/
NamingEnumeration list = entry.getIDs();
while ( list.hasMore() )
{
String id = ( String ) list.next();
AttributeType type = null;
boolean asBinary = false;
if ( attributeRegistry.hasAttributeType( id ) )
{
type = attributeRegistry.lookup( id );
}
if ( type != null )
{
asBinary = !type.getSyntax().isHumanReadible();
asBinary = asBinary || binaries.contains( type );
}
if ( asBinary )