Interface IOExceptionFunction<F,​T>


  • public interface IOExceptionFunction<F,​T>
    Function that can throw an I/O Exception
    • Method Detail

      • apply

        @Nullable
        T apply​(@Nullable
                F input)
         throws java.io.IOException
        Applies the function to the given input.
        Parameters:
        input - the input
        Returns:
        the function result
        Throws:
        java.io.IOException
      • asFunction

        static <F,​T> com.google.common.base.Function<F,​T> asFunction​(IOExceptionFunction<F,​T> f)
        Wraps a function that may throw an IO Exception throwing an IOExceptionWrapper.
        Parameters:
        f - the function