Class UnixPrinter
java.lang.Object
oshi.hardware.common.AbstractPrinter
oshi.hardware.platform.unix.UnixPrinter
- All Implemented Interfaces:
oshi.hardware.Printer
@Immutable
public final class UnixPrinter
extends oshi.hardware.common.AbstractPrinter
CUPS-based printer implementation for Unix-like systems.
-
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 if available, otherwise falls back to lpstat command.- Returns:
- A list of printers.
-