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.
      path - the file’s path
      options - open options
  • Method Details

    • path

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

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