public class ProviderInfo extends Object
ImageReaderWriterSpi
subclasses based on information in the manifest.Constructor and Description |
---|
ProviderInfo(Package pPackage)
Creates a provider information instance based on the given package.
|
Modifier and Type | Method and Description |
---|---|
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() |
public ProviderInfo(Package pPackage)
pPackage
- the package to get provider information from.
This should typically be the package containing the Spi class.IllegalArgumentException
- if pPackage == null
public final String getVendorName()
Implementation-Vendor
for the package.
If the vendor name is unavailable, the package name or some default name
for known packages are used.public final String getVersion()
Implementation-Version
for the package.
If the version is unavailable, some arbitrary (non-null
) value is used.Copyright © 2017. All rights reserved.