Class LpstatPrinter
java.lang.Object
oshi.hardware.common.AbstractPrinter
oshi.hardware.common.platform.unix.CupsPrinter
oshi.hardware.common.platform.unix.LpstatPrinter
- All Implemented Interfaces:
Printer
Native-free CUPS printer implementation. Queries printers via the
lpstat command rather than libcups, so it
works without JNA or FFM native access. Used by platforms whose hardware abstraction layer lives entirely in
oshi-common (currently NetBSD).-
Nested Class Summary
Nested classes/interfaces inherited from class CupsPrinter
CupsPrinter.PrinterFactoryModifier and TypeClassDescriptionstatic interfaceFactory interface for creating concrete printer instances.Nested classes/interfaces inherited from interface Printer
Printer.PrinterStatusModifier and TypeInterfaceDescriptionstatic enumPrinter status enumeration. -
Method Summary
Modifier and TypeMethodDescriptionGets the list of printers known to CUPS by parsinglpstat -poutput.Methods inherited from class CupsPrinter
getPrintersFromLpstatModifier and TypeMethodDescriptionGets printers by parsing lpstat command output.Methods inherited from class AbstractPrinter
getDescription, getDriverName, getName, getPortName, getStatus, getStatusReason, isDefault, isLocal, toStringModifier and TypeMethodDescriptionRetrieves the user-friendly description of the printer.Retrieves the driver name or make/model of the printer.getName()Retrieves the name of the printer.Retrieves the port name or device URI of the printer.Retrieves the current status of the printer.Retrieves the reason for the current printer status, if available.booleanIndicates whether this is the default printer.booleanisLocal()Indicates whether this is a local printer (as opposed to a network printer).toString()
-
Method Details
-
getPrinters
-