Class OpenFile

All Implemented Interfaces:
Future<Void>, Associator, Eligible
Direct Known Subclasses:
SaveInput, SaveOutput, StreamFile

public class OpenFile extends Event<Void>
A base class for events that cause a file to be opened.
  • Constructor Details

    • OpenFile

      public OpenFile(Path path, OpenOption... options)
      Creates a new instance.
      Parameters:
      path - the file’s path
      options - open options
  • Method Details

    • path

      public Path path()
      Return’s the event’s path.
      Returns:
      the path
    • options

      public OpenOption[] options()
      Returns the event’s options.
      Returns:
      the options