Package org.daisy.printing
Class FileDevice
- java.lang.Object
-
- org.daisy.printing.FileDevice
-
-
Constructor Summary
Constructors Constructor Description FileDevice(java.io.File parent)
Creates a new FileDevice, using the supplied settings.FileDevice(java.io.File parent, java.lang.String prefix)
Creates a new FileDevice, using the supplied settings.FileDevice(java.io.File parent, java.lang.String prefix, java.lang.String suffix)
Creates a new FileDevice, using the supplied settings.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
transmit(java.io.File file)
Transmits a file to the Device
-
-
-
Constructor Detail
-
FileDevice
public FileDevice(java.io.File parent, java.lang.String prefix, java.lang.String suffix)
Creates a new FileDevice, using the supplied settings.- Parameters:
parent
- the parent folderprefix
- the file prefixsuffix
- the file suffix- Throws:
java.lang.IllegalArgumentException
- if parent is not a directory
-
FileDevice
public FileDevice(java.io.File parent, java.lang.String prefix)
Creates a new FileDevice, using the supplied settings. File extension will be ".prn"- Parameters:
parent
- the parent folderprefix
- the file prefix- Throws:
java.lang.IllegalArgumentException
- if parent is not a directory
-
FileDevice
public FileDevice(java.io.File parent)
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:
java.lang.IllegalArgumentException
- if parent is not a directory
-
-