com.twelvemonkeys.imageio.spi
Class ProviderInfo

java.lang.Object
  extended by com.twelvemonkeys.imageio.spi.ProviderInfo

public class ProviderInfo
extends Object

Provides provider info, like vendor name and version, for ImageReaderWriterSpi subclasses based on information in the manifest.

Version:
$Id: ProviderInfo.java,v 1.0 Oct 31, 2009 3:49:39 PM haraldk Exp$
Author:
Harald Kuhr, last modified by $Author: haraldk$
See Also:
JAR Manifest

Constructor Summary
ProviderInfo(Package pPackage)
          Creates a provider information instance based on the given package.
 
Method Summary
 String getVendorName()
          Returns the vendor name, as specified in the manifest entry Implementation-Vendor for the package.
 String getVersion()
          Returns the version/build number string, as specified in the manifest entry Implementation-Version for the package.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProviderInfo

public ProviderInfo(Package pPackage)
Creates a provider information instance based on the given package.

Parameters:
pPackage - the package to get provider information from. This should typically be the package containing the Spi class.
Throws:
IllegalArgumentException - if pPackage == null
Method Detail

getVendorName

public final String getVendorName()
Returns the vendor name, as specified in the manifest entry Implementation-Vendor for the package. If the vendor name is unavailable, the package name or some default name for known packages are used.

Returns:
the vendor name.

getVersion

public final String getVersion()
Returns the version/build number string, as specified in the manifest entry Implementation-Version for the package. If the version is unavailable, some arbitrary (non-null) value is used.

Returns:
the vendor name.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015. All Rights Reserved.