List of usage examples for javax.print.event PrintServiceAttributeEvent getAttributes
public PrintServiceAttributeSet getAttributes()
From source file:Main.java
public void attributeUpdate(PrintServiceAttributeEvent psae) { PrintService service = psae.getPrintService(); Attribute[] attrs = psae.getAttributes().toArray(); for (int i = 0; i < attrs.length; i++) { String attrName = attrs[i].getName(); String attrValue = attrs[i].toString(); }//w w w.j av a2 s . c om }