public class VendorConfig extends Object
vendorconfigs.xml
. Configuration
can be read via getConfig(Context, String)
.Modifier and Type | Field and Description |
---|---|
List<String> |
mDNSNames
mDNS names used by this vendor
|
String |
name
Localized vendor name
|
String |
packageName
Package name containing the print service for this vendor
|
Modifier and Type | Method and Description |
---|---|
static Collection<VendorConfig> |
getAllConfigs(Context context)
Get all known vendor configurations.
|
static VendorConfig |
getConfig(Context context,
String name)
Get the configuration for a vendor.
|
String |
toString()
Returns a string representation of the object.
|
public final String name
public final String packageName
public static VendorConfig getConfig(Context context, String name) throws IOException, XmlPullParserException
context
- Calling contextname
- The name of the config to readIOException
XmlPullParserException
public static Collection<VendorConfig> getAllConfigs(Context context) throws IOException, XmlPullParserException
context
- Calling contextIOException
XmlPullParserException
public String toString()
Object
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())