Interface OpenableCloseable

All Superinterfaces:
AutoCloseable, Closeable
All Known Subinterfaces:
IncrementalFileMergerInput, IncrementalFileMergerOutput, MergeOutputWriter
All Known Implementing Classes:
DelegateIncrementalFileMergerInput, DelegateIncrementalFileMergerOutput, FilterIncrementalFileMergerInput, LazyIncrementalFileMergerInput, RenameIncrementalFileMergerInput

public interface OpenableCloseable extends Closeable
Specifies the general contract for an object that needs to be open or closed. An openable/closeable object has two states: open and closed. open() moves from closed to open and Closeable.close() from open to close. What operations can be performed in each state is not specified by this interface, only the state machine.

Openable / closeable objects are always initialized as closed.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Opens the object.

    Methods inherited from interface java.io.Closeable

    close
  • Method Details

    • open

      void open()
      Opens the object.