Package com.lightcrafts.mediax.jai.remote

Examples of com.lightcrafts.mediax.jai.remote.NegotiableCapabilitySet


       // Only non-preference NegotiableCapability objects can be added
       // to this NCS, which is ok, since these represent the capabilities
       // of the client and thus are not preferences as much as they are
       // hard capabilities (i.e. non-preferences)
       NegotiableCapabilitySet capabilities =
           new NegotiableCapabilitySet(false);

       // Note that tileEncoder capabilities cannot be added since there is
       // no way to differentiate between a encoding and a decoding capability
       // within an NCS, and since the client should only be expected to
       // decode, this should be ok.

       Iterator it;
       for (int i=0; i<descriptorNames.length; i++) {

     it = registry.getFactoryIterator(modeName, descriptorNames[i]);
     for (; it.hasNext(); ) {
         tdf = (TileDecoderFactory)it.next();
         capabilities.add(tdf.getDecodeCapability());
     }
       }

       return capabilities;
    }
View Full Code Here


  String modeName = "tileEncoder";
  String[] descriptorNames = registry.getDescriptorNames(modeName);
  TileEncoderFactory tef = null;

  // Only non-preference NC's can be added.
  NegotiableCapabilitySet capabilities =
      new NegotiableCapabilitySet(false);

  Iterator it;
  for (int i=0; i<descriptorNames.length; i++) {

      it = registry.getFactoryIterator(modeName, descriptorNames[i]);
      for (; it.hasNext(); ) {
    tef = (TileEncoderFactory)it.next();
    capabilities.add(tef.getEncodeCapability());
      }
  }

  return capabilities;
    }
View Full Code Here

TOP

Related Classes of com.lightcrafts.mediax.jai.remote.NegotiableCapabilitySet

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.