Package org.apache.catalina.util
Class ResponseUtil
- java.lang.Object
-
- org.apache.catalina.util.ResponseUtil
-
public final class ResponseUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description ResponseUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IOException
copy(InputStream istream, jakarta.servlet.ServletOutputStream ostream)
Copies the contents of the specified input stream to the specified output stream.static IOException
copy(Reader reader, PrintWriter writer)
Copies the contents of the specified input stream to the specified output stream.
-
-
-
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 fromostream
- 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 fromwriter
- The writer to write to- Returns:
- Exception that occurred during processing, or null
-
-