/** * Checks whether the given product type is suported by the reader - or not. * * @param typeString the product type * @return <code>true</code> if the given product type is suported, otherwise <code>false</code>. */ public boolean isSupportedProduct(final String typeString) throws ProductIOException { ensureSupportedProductTypes(); return _productTypes.get(typeString) != null; }
public String[] getSupportetProductTypes() throws ProductIOException { ensureSupportedProductTypes(); final Set<String> keySet = _productTypes.keySet(); final String[] result = new String[keySet.size()]; return keySet.toArray(result); }