Class IOUtils


  • public final class IOUtils
    extends Object
    IOUtility methods for use with the Inrupt Java Client Libraries.
    • Method Detail

      • pipe

        public static InputStream pipe​(Consumer<OutputStream> function)
        Pipe an output stream to a consumable input stream.
        Parameters:
        function - the output stream
        Returns:
        a consumable input stream
      • stream

        public static Request.BodyPublisher stream​(Consumer<OutputStream> function)
        Stream a request body directly from a consuming function.
        Parameters:
        function - the consuming function
        Returns:
        the request publisher
      • buffer

        public static Request.BodyPublisher buffer​(Consumer<OutputStream> function)
        Buffer a request body from a consuming function.
        Parameters:
        function - the consuming function
        Returns:
        the request publisher