Examples of CupsClient


Examples of org.cups4j.CupsClient

    if (isWindows == false)
    {
      try
      {
        List<CupsPrinter> printers = new CupsClient().getPrinters();

        for (CupsPrinter p : printers)
        {
          if (printService.getName().equals(p.getName()))
          {
View Full Code Here

Examples of org.cups4j.CupsClient

  public static String getName(String printerDescription)
  {
    String result = "error";
    try
    {
      List<CupsPrinter> printers = new CupsClient().getPrinters();

      for (CupsPrinter p : printers)
      {
        String temp1 = p.getDescription().toString();
          String temp2 = p.getName();
View Full Code Here

Examples of org.cups4j.CupsClient

   * @param port
   */
  private void connect(String host, int port) {
    if (host != null && StringUtils.isNotBlank(host) && port > 0) {
      try {
        client = new CupsClient(host,port);
        logger.debug("Connection to CupsServer {} established",host);
      } catch (Exception e) {
        logger.error("Couldn't connect to CupsServer [Host '" + host + "' Port '" + port + "']: ", e.getLocalizedMessage());
      }
    } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.