Package org.jppf.io

Class FileOutputDestination

java.lang.Object
org.jppf.io.ChannelOutputDestination
org.jppf.io.FileOutputDestination
All Implemented Interfaces:
Closeable, AutoCloseable, IO, OutputDestination

public class FileOutputDestination extends ChannelOutputDestination
Output destination backed by a file.
Author:
Laurent Cohen
  • Constructor Details

    • FileOutputDestination

      public FileOutputDestination(String path) throws Exception
      Initialize this file output destination with the specified file path.
      Parameters:
      path - the path to the file to read from.
      Throws:
      Exception - if an IO error occurs.
    • FileOutputDestination

      public FileOutputDestination(File file) throws Exception
      Initialize this file output destination with the specified file.
      Parameters:
      file - the file to read from.
      Throws:
      Exception - if an IO error occurs.
  • Method Details