public static void register(String algorithmURI,Class<? extends TransformSpi> implementingClass) throws AlgorithmAlreadyRegisteredException {
  JavaUtils.checkRegisterPermission();
  Class<? extends TransformSpi> transformSpi=transformSpiHash.get(algorithmURI);
  if (transformSpi != null) {
    Object exArgs[]={algorithmURI,transformSpi};
    throw new AlgorithmAlreadyRegisteredException("algorithm.alreadyRegistered",exArgs);
  }
  transformSpiHash.put(algorithmURI,implementingClass);
}

public static void register ( String algorithmURI , Class < ? extends TransformSpi > implementingClass ) throws AlgorithmAlreadyRegisteredException { JavaUtils . checkRegisterPermission ( ) ; Class < ? extends TransformSpi > transformSpi = transformSpiHash . get ( algorithmURI ) ; if ( transformSpi != null ) { Object exArgs [ ] = { algorithmURI , transformSpi } ; throw new AlgorithmAlreadyRegisteredException ( "algorithm.alreadyRegistered" , exArgs ) ; } transformSpiHash . put ( algorithmURI , implementingClass ) ; }
registers implementing class of the transform algorithm with algorithmuri
