Tabnine Logo
PackageUtil.isCodecLibAvailable
Code IndexAdd Tabnine to your IDE (free)

How to use
isCodecLibAvailable
method
in
com.sun.media.imageioimpl.common.PackageUtil

Best Java code snippets using com.sun.media.imageioimpl.common.PackageUtil.isCodecLibAvailable (Showing top 18 results out of 315)

origin: geotools/geotools

/**
 * Tells me whether or not the native libraries for JAI/ImageIO are active or not.
 *
 * @return <code>false</code> in case the JAI/ImageIO native libs are not in the path, <code>
 *     true</code> otherwise.
 */
public static boolean isCLibAvailable() {
  return PackageUtil.isCodecLibAvailable();
}
origin: geotools/geotools

if (PackageUtil.isCodecLibAvailable()) {
  boolean succeeded =
      ImageIOUtilities.replaceProvider(
origin: geotools/geotools

if (PackageUtil.isCodecLibAvailable()) {
  boolean succeeded =
      ImageIOUtilities.replaceProvider(
origin: geotools/geotools

if (PackageUtil.isCodecLibAvailable()) {
  boolean succeeded =
      ImageIOUtilities.replaceProvider(
origin: geotools/geotools

if (PackageUtil.isCodecLibAvailable()) {
  boolean succeeded =
      ImageIOUtilities.replaceProvider(
origin: geosolutions-it/jai-ext

/**
 * Tells me whether or not the native libraries for JAI/ImageIO are active or not.
 * 
 * @return <code>false</code> in case the JAI/ImageIO native libs are not in the path, <code>true</code> otherwise.
 */
public static boolean isCLibAvailable() {
  return PackageUtil.isCodecLibAvailable();
}
origin: org.geotools/gt-coverage

/**
 * Tells me whether or not the native libraries for JAI/ImageIO are active or not.
 * 
 * @return <code>false</code> in case the JAI/ImageIO native libs are not in the path, <code>true</code> otherwise.
 */
public static boolean isCLibAvailable() {
  return PackageUtil.isCodecLibAvailable();
}
origin: org.geotools/gt-coverage

/**
 * Tells me whether or not the native libraries for JAI/ImageIO are active or not.
 * 
 * @return <code>false</code> in case the JAI/ImageIO native libs are not in the path, <code>true</code> otherwise.
 * @deprecated Use {@link ImageIOExt#isCLibAvailable()} instead
 */
public static boolean isCLibAvailable() {
  return PackageUtil.isCodecLibAvailable();
}
origin: it.geosolutions.jaiext.utilities/jt-utilities

/**
 * Tells me whether or not the native libraries for JAI/ImageIO are active or not.
 * 
 * @return <code>false</code> in case the JAI/ImageIO native libs are not in the path, <code>true</code> otherwise.
 */
public static boolean isCLibAvailable() {
  return PackageUtil.isCodecLibAvailable();
}
origin: org.geotools/gt-imagemosaic

private static void replaceJP2Kakadu() {
  try{
    Class.forName(KAKADU_SPI);

    // imageio kakJP2 reader
    final String imageioJ2KImageReaderCodecName=J2KImageReaderCodecLibSpi.class.getName();
    
    if(PackageUtil.isCodecLibAvailable()){
      boolean succeeded=ImageIOUtilities.replaceProvider(ImageReaderSpi.class, KAKADU_SPI, imageioJ2KImageReaderCodecName, "JPEG 2000");
      if(!succeeded)
        if (LOGGER.isLoggable(Level.WARNING))
          LOGGER.warning("Unable to set ordering between jp2 readers spi-"+KAKADU_SPI+":"+imageioJ2KImageReaderCodecName);	
    }
  
    // imageio kakJP2 reader
    final String imageioJ2KImageReaderName=J2KImageReaderSpi.class.getName();
    
    final boolean succeeded=ImageIOUtilities.replaceProvider(ImageReaderSpi.class, KAKADU_SPI, imageioJ2KImageReaderName, "JPEG 2000");
  if(!succeeded)
    if (LOGGER.isLoggable(Level.WARNING))
      LOGGER.warning("Unable to set ordering between jp2 readers spi-"+KAKADU_SPI+":"+imageioJ2KImageReaderName);	
    
  } catch (ClassNotFoundException e) {
    if (LOGGER.isLoggable(Level.WARNING))
      LOGGER.log(Level.WARNING, "Unable to load specific JPEG2000 reader spi",e);
  } 
}
origin: org.geotools/gt-imagemosaic

if(PackageUtil.isCodecLibAvailable()){
  boolean succeeded=ImageIOUtilities.replaceProvider(ImageReaderSpi.class, GDAL_JP2KAKADU_SPI, imageioJ2KImageReaderCodecName, "JPEG 2000");
  if(!succeeded)
origin: org.geotools/gt-imagemosaic

private static void replaceMRSID() {
  try{
    //check if our mrsidJP2 plugin is in the path
    Class.forName(GDAL_JP2MrSID_SPI );

    // imageio tiff reader
    final String imageioJ2KImageReaderCodecName=J2KImageReaderCodecLibSpi.class.getName();
    
    if(PackageUtil.isCodecLibAvailable()){
      boolean succeeded=ImageIOUtilities.replaceProvider(ImageReaderSpi.class, GDAL_JP2MrSID_SPI , imageioJ2KImageReaderCodecName, "JPEG 2000");
      if(!succeeded)
        if (LOGGER.isLoggable(Level.WARNING))
          LOGGER.warning("Unable to set ordering between jp2 readers spi-"+GDAL_JP2MrSID_SPI +":"+imageioJ2KImageReaderCodecName);	
    }
  
    // imageio mrsidJP2 reader
    final String imageioJ2KImageReaderName=J2KImageReaderSpi.class.getName();
    
    
    final boolean succeeded=ImageIOUtilities.replaceProvider(ImageReaderSpi.class, GDAL_JP2MrSID_SPI , imageioJ2KImageReaderName, "JPEG 2000");
  if(!succeeded)
    if (LOGGER.isLoggable(Level.WARNING))
      LOGGER.warning("Unable to set ordering between jp2 readers spi-"+GDAL_JP2MrSID_SPI +":"+imageioJ2KImageReaderName);	
    
  } catch (ClassNotFoundException e) {
    if (LOGGER.isLoggable(Level.WARNING))
      LOGGER.log(Level.WARNING, "Unable to load specific JPEG2000 reader spi",e);
  } 
  
}
origin: org.geotools/gt-imagemosaic

private static void replaceECW() {
  try{
    //check if our ecwJP2 plugin is in the path
    Class.forName(GDAL_JP2ECW_SPI);

    // imageio ecwJP2 reader
    final String imageioJ2KImageReaderCodecName=J2KImageReaderCodecLibSpi.class.getName();
    
    if(PackageUtil.isCodecLibAvailable()){
      boolean succeeded=ImageIOUtilities.replaceProvider(ImageReaderSpi.class, GDAL_JP2ECW_SPI, imageioJ2KImageReaderCodecName, "JPEG 2000");
      if(!succeeded)
        if (LOGGER.isLoggable(Level.WARNING))
          LOGGER.warning("Unable to set ordering between jp2 readers spi-"+GDAL_JP2ECW_SPI+":"+imageioJ2KImageReaderCodecName);	
    }
  
    // imageio ecwJP2 reader
    final String imageioJ2KImageReaderName=J2KImageReaderSpi.class.getName();
    
    final boolean succeeded=ImageIOUtilities.replaceProvider(ImageReaderSpi.class, GDAL_JP2ECW_SPI, imageioJ2KImageReaderName, "JPEG 2000");
  if(!succeeded)
    if (LOGGER.isLoggable(Level.WARNING))
      LOGGER.warning("Unable to set ordering between jp2 readers spi-"+GDAL_JP2ECW_SPI+":"+imageioJ2KImageReaderName);	
    
  } catch (ClassNotFoundException e) {
    if (LOGGER.isLoggable(Level.WARNING))
      LOGGER.log(Level.WARNING, "Unable to load specific JPEG2000 reader spi",e);
  } 
  
}
origin: org.geoserver.web/gs-web-core

if (!PackageUtil.isCodecLibAvailable()) {
  encoders.remove(PngEncoderType.NATIVE);
origin: org.geoserver.web/web-core

values.put(KEY_JAI_IMAGEIO_AVAILABLE, Boolean.toString(PackageUtil.isCodecLibAvailable()));
origin: org.geoserver.web/gs-web-core

values.put(KEY_JAI_IMAGEIO_AVAILABLE, Boolean.toString(PackageUtil.isCodecLibAvailable()));
origin: it.geosolutions.imageio-ext/imageio-ext-tiff

if(PackageUtil.isCodecLibAvailable()) {
  try {
    this.decompressor =
    BaselineTIFFTagSet.COMPRESSION_CCITT_T_4) {
if(PackageUtil.isCodecLibAvailable()) {
origin: it.geosolutions.imageio-ext/imageio-ext-tiff

if(PackageUtil.isCodecLibAvailable()) {
  try {
    compressor = new TIFFCodecLibRLECompressor();
if(PackageUtil.isCodecLibAvailable()) {
  try {
    compressor = new TIFFCodecLibT4Compressor();
if(PackageUtil.isCodecLibAvailable()) {
  try {
    compressor = new TIFFCodecLibT6Compressor();
com.sun.media.imageioimpl.commonPackageUtilisCodecLibAvailable

Javadoc

Flag indicating whether codecLib is available.

Popular methods of PackageUtil

  • getSpecificationTitle
    Return the Specification Title string for the package.
  • getVendor
    Return a vendor string for the package.
  • getVersion
    Return a version string for the package.

Popular in Java

  • Parsing JSON documents to java classes using gson
  • onRequestPermissionsResult (Fragment)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • findViewById (Activity)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • JPanel (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now