public final class ResponseUtil extends Object
| Constructor and Description |
|---|
ResponseUtil() |
| Modifier and Type | Method and Description |
|---|---|
static IOException |
copy(InputStream istream,
javax.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.
|
public static IOException copy(InputStream istream, javax.servlet.ServletOutputStream ostream)
istream - The input stream to read fromostream - The output stream to write topublic static IOException copy(Reader reader, PrintWriter writer)
reader - The reader to read fromwriter - The writer to write toCopyright © 2017. All rights reserved.