Class ProviderInfo
java.lang.Object
com.twelvemonkeys.imageio.spi.ProviderInfo
- Direct Known Subclasses:
ReaderWriterProviderInfo, StreamProviderInfo
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$
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionProviderInfo(Package pPackage) Creates a provider information instance based on the given package. -
Method Summary
Modifier and TypeMethodDescriptionprivate static StringfakeVendor(Package pPackage) private StringfakeVersion(Package pPackage) (package private) final StringReturns the implementation title, as specified in the manifest entryImplementation-Titlefor the package.final StringReturns the vendor name, as specified in the manifest entryImplementation-Vendorfor the package.final StringReturns the version/build number string, as specified in the manifest entryImplementation-Versionfor the package.toString()
-
Field Details
-
title
-
vendorName
-
version
-
-
Constructor Details
-
ProviderInfo
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- ifpPackage == null
-
-
Method Details
-
fakeVendor
-
fakeVersion
-
getImplementationTitle
Returns the implementation title, as specified in the manifest entryImplementation-Titlefor the package. If the title is unavailable, the package name or some default name for known packages are used.- Returns:
- the implementation title
-
getVendorName
Returns the vendor name, as specified in the manifest entryImplementation-Vendorfor 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
Returns the version/build number string, as specified in the manifest entryImplementation-Versionfor the package. If the version is unavailable, some arbitrary (non-null) value is used.- Returns:
- the vendor name.
-
toString
-