Class ResponseUtil


  • public final class ResponseUtil
    extends Object
    • Constructor Detail

      • ResponseUtil

        public ResponseUtil()
    • Method Detail

      • copy

        public static IOException copy​(InputStream istream,
                                       jakarta.servlet.ServletOutputStream ostream)
        Copies the contents of the specified input stream to the specified output stream.
        Parameters:
        istream - The input stream to read from
        ostream - The output stream to write to
        Returns:
        Exception that occurred during processing, or null
      • copy

        public static IOException copy​(Reader reader,
                                       PrintWriter writer)
        Copies the contents of the specified input stream to the specified output stream.
        Parameters:
        reader - The reader to read from
        writer - The writer to write to
        Returns:
        Exception that occurred during processing, or null