Package org.daisy.braille.utils.pef
Class FileDevice
- java.lang.Object
-
- org.daisy.braille.utils.pef.FileDevice
-
-
Constructor Summary
Constructors Constructor Description FileDevice(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.
-
-
-
Constructor Detail
-
FileDevice
public FileDevice(File parent, String prefix, String suffix)
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
public FileDevice(File parent, String prefix)
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
public FileDevice(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:
IllegalArgumentException- if parent is not a directory
-
-
Method Detail
-
transmit
public void transmit(File file) throws PrintException
Description copied from interface:DeviceTransmits a file to the Device.- Specified by:
transmitin interfaceDevice- Parameters:
file- the file to transmit- Throws:
PrintException- if the file could not be transmitted
-
-