Package org.daisy.printing
Class PrinterDevice
- java.lang.Object
-
- org.daisy.printing.PrinterDevice
-
-
Constructor Summary
Constructors Constructor Description PrinterDevice(java.lang.String deviceName, boolean fuzzyLookup)Create a device with the provided name.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static javax.print.PrintService[]getDevices()List available devicesvoidtransmit(java.io.File file)Transmit a file to the device
-
-
-
Constructor Detail
-
PrinterDevice
public PrinterDevice(java.lang.String deviceName, boolean fuzzyLookup)Create a device with the provided name.- Parameters:
deviceName- the name of the devicefuzzyLookup- If true, the returned device is any device whose name contains the supplied deviceName. If false, the returned device name equals the supplied deviceName.- Throws:
java.lang.IllegalArgumentException- if no device is found.
-
-