?? e706. determining the capabilities of a print service.txt
字號:
The capabilities of a print service are called print service attributes. Examples of print service attributes include: color-supported, printer-name, and queued-job-count. This example demonstrates how to retrieve the current attributes of a print service. To monitor changes to these attributes, see e713 Listening for Print Service Status Changes.
Attribute[] attrs = service.getAttributes().toArray();
for (int j=0; j<attrs.length; j++) {
String attrName = attrs[j].getName();
// Retrieve the string version of the attribute value
String attrValue = attrs[j].toString();
process(service, attrName, attrValue);
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -