Package org.daisy.printing
Class FileDevice
java.lang.Object
org.daisy.printing.FileDevice
- All Implemented Interfaces:
Device
Provides a way of writing the files transmitted using the Device interface to files
- Author:
- Joel HÃ¥kansson
-
Constructor Summary
ConstructorDescriptionFileDevice
(File parent) Creates a new FileDevice, using the supplied settings.FileDevice
(File parent, String prefix) Creates a new FileDevice, using the supplied settings.FileDevice
(File parent, String prefix, String suffix) Creates a new FileDevice, using the supplied settings. -
Method Summary
-
Constructor Details
-
FileDevice
Creates a new FileDevice, using the supplied settings.- Parameters:
parent
- the parent folderprefix
- the file prefixsuffix
- the file suffix- Throws:
IllegalArgumentException
- if parent is not a directory
-
FileDevice
Creates a new FileDevice, using the supplied settings. File extension will be ".prn"- Parameters:
parent
- the parent folderprefix
- the file prefix- Throws:
IllegalArgumentException
- if parent is not a directory
-
FileDevice
Creates a new FileDevice, using the supplied settings. File extension will be ".prn" and file prefix will be "job_"- Parameters:
parent
- the parent folder- Throws:
IllegalArgumentException
- if parent is not a directory
-
-
Method Details
-
transmit
Description copied from interface:Device
Transmits a file to the Device- Specified by:
transmit
in interfaceDevice
- Parameters:
file
- the file to transmit- Throws:
PrintException
-