Class FileDevice

java.lang.Object
org.daisy.printing.FileDevice
All Implemented Interfaces:
Device

public class FileDevice extends Object implements Device
Provides a way of writing the files transmitted using the Device interface to files
Author:
Joel HÃ¥kansson
  • Constructor Details

    • FileDevice

      public FileDevice(File parent, String prefix, String suffix)
      Creates a new FileDevice, using the supplied settings.
      Parameters:
      parent - the parent folder
      prefix - the file prefix
      suffix - 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 folder
      prefix - 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 Details