Java Printer Usage notInArray(PrintService key, PrintService[] array)

Here you can find the source of notInArray(PrintService key, PrintService[] array)

Description

not In Array

License

Open Source License

Declaration

private static boolean notInArray(PrintService key, PrintService[] array) 

Method Source Code

//package com.java2s;

import javax.print.PrintService;

public class Main {
    private static boolean notInArray(PrintService key, PrintService[] array) {
        if (key == null)
            return false;
        int i = array.length;
        while (--i >= 0)
            if (array[i].equals(key))
                return false;
        return true;
    }//from w  w w.  j  a  v a  2 s  . co m
}

Related

  1. isValueSupported(PrintService ps, Attribute attr, DocFlavor flavor, AttributeSet attributes)
  2. lookupMediaSize(final Media media)
  3. lookupPrintNames(PrintService[] prtSrvs)
  4. lookupPrintService()
  5. lookupPrintServices()
  6. print(PrintService printService, byte[] pdf)
  7. refreshPrinterList()
  8. showAttributes(PrintRequestAttributeSet aset)
  9. testSPS()