# Class LFileModelImport

java.lang.Object
com.io7m.laurel.filemodel.internal.LFileModelImport

All Implemented Interfaces:
  `LFileModelImportType, AutoCloseable`

public final class LFileModelImport extends Object implements LFileModelImportType
A file import operation.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `close()`
  `static LFileModelImportType`
  `create(Path directory, Path outputFile)`
  Create an import operation.
  `Flow.Publisher<LFileModelEventType>`
  `events()`
  `CompletableFuture<Void>`
  `execute()`
  Execute the operation.

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### create

    public static LFileModelImportType create(Path directory, Path outputFile)
    Create an import operation.
    Parameters:
      `directory` - The source directory
      `outputFile` - The output file
    Returns:
      The operation

  - ### events

    public Flow.Publisher<LFileModelEventType> events()
    Specified by:
      `events` in interface `LFileModelImportType`
    Returns:
      The stream of events

  - ### execute

    public CompletableFuture<Void> execute()
    Description copied from interface: `LFileModelImportType`
    Execute the operation.
    Specified by:
      `execute` in interface `LFileModelImportType`
    Returns:
      The operation in process

  - ### close

    public void close()
    Specified by:
      `close` in interface `AutoCloseable`
    Specified by:
      `close` in interface `LFileModelImportType`