Interface Flushable

    • Method Detail

      • flushUnchecked

        default void flushUnchecked()
        Flushes the component by calling flush() without you to require catching a IOException.
        Throws:
        org.refcodes.exception.IORuntimeException - encapsulates the cause and is thrown upon encountering a IOException exception
      • isFlushable

        default boolean isFlushable()
        Determines whether the implementing instance can safely be flushed. When false is returned, then calling flush() would result in an IOException exception to be thrown.
        Returns:
        True in case flush() can be called without throwing an IOException.