Package org.jppf.io

Class FileInputSource

All Implemented Interfaces:
Closeable, AutoCloseable, InputSource, IO

public class FileInputSource extends ChannelInputSource
Input source backed by a file.
Author:
Laurent Cohen
  • Constructor Details

    • FileInputSource

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

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