Java Printer Usage showAttributes(PrintRequestAttributeSet aset)

Here you can find the source of showAttributes(PrintRequestAttributeSet aset)

Description

show Attributes

License

Open Source License

Declaration

public static void showAttributes(PrintRequestAttributeSet aset) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import javax.print.attribute.Attribute;

import javax.print.attribute.PrintRequestAttributeSet;

public class Main {

    public static void showAttributes(PrintRequestAttributeSet aset) {
        Attribute tab[] = aset.toArray();
        for (int i = 0; i < tab.length; i++) {
            Attribute attr = tab[i];
            System.out.println("  - " + i + ". " + attr.getName() + " " + attr.toString());
        }/*from   w  w w.  jav  a  2 s .c o  m*/
    }
}

Related

  1. lookupPrintService()
  2. lookupPrintServices()
  3. notInArray(PrintService key, PrintService[] array)
  4. print(PrintService printService, byte[] pdf)
  5. refreshPrinterList()
  6. testSPS()
  7. validateDPI(int dpi)