Class CupsPrinter
java.lang.Object
oshi.hardware.common.AbstractPrinter
oshi.ffm.unix.CupsPrinter
- All Implemented Interfaces:
oshi.hardware.Printer
@Immutable
public final class CupsPrinter
extends oshi.hardware.common.AbstractPrinter
CUPS-based printer implementation using the Java FFM API. Uses libcups if available, otherwise falls back to the
lpstat command.-
Nested Class Summary
Nested classes/interfaces inherited from interface oshi.hardware.Printer
oshi.hardware.Printer.PrinterStatus -
Method Summary
Methods inherited from class oshi.hardware.common.AbstractPrinter
getDescription, getDriverName, getName, getPortName, getStatus, getStatusReason, isDefault, isLocal, toString
-
Method Details
-
getPrinters
Gets printers using CUPS. Uses libcups via FFM if available, otherwise falls back to thelpstatcommand.- Returns:
- a list of printers
-