Package org.daisy.printing
Class PrinterDevice
java.lang.Object
org.daisy.printing.PrinterDevice
- All Implemented Interfaces:
Device
Printer device class of type DocFlavor.INPUT_STREAM.AUTOSENSE
This class can be used when sending a file to a printer.
- Version:
- 3 jul 2008
- Author:
- Joel HÃ¥kansson
-
Constructor Summary
ConstructorDescriptionPrinterDevice
(String deviceName, boolean fuzzyLookup) Create a device with the provided name. -
Method Summary
Modifier and TypeMethodDescriptionstatic PrintService[]
List available devicesvoid
Transmit a file to the device
-
Constructor Details
-
PrinterDevice
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:
IllegalArgumentException
- if no device is found.
-
-
Method Details
-
getDevices
List available devices- Returns:
- returns a list of available devices that accepts DocFlavor.INPUT_STREAM.AUTOSENSE
-
transmit
Transmit a file to the device- Specified by:
transmit
in interfaceDevice
- Parameters:
file
- the file to transmit- Throws:
FileNotFoundException
PrintException
-