Constructor and Description |
---|
PrinterDevice(java.lang.String deviceName,
boolean fuzzyLookup)
Create a device with the provided name.
|
Modifier and Type | Method and Description |
---|---|
static javax.print.PrintService[] |
getDevices()
List available devices
|
void |
transmit(java.io.File file)
Transmit a file to the device
|
public PrinterDevice(java.lang.String deviceName, boolean fuzzyLookup)
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.java.lang.IllegalArgumentException
- if no device is found.