Find an access method that implements a format type.
@see AccessFactory#findMethodFactoryByFormat
**/
public MethodFactory findMethodFactoryByFormat(UUID format)
{
MethodFactory factory;
// See if there's an access method that supports the desired
// format type as its primary format type.
factory = formathash.get(format);
if (factory != null)
return factory;
// No primary format. See if one of the access methods
// supports it as a secondary format.
Enumeration<MethodFactory> e = formathash.elements();
while (e.hasMoreElements())
{
factory = e.nextElement();
if (factory.supportsFormat(format))
return factory;
}
// No such implementation.
return null;