Package ninja.utils
Interface ResponseStreams
-
public interface ResponseStreams
Make sure to only write to either the OutputStream OR the Writer...- Author:
- rbauer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OutputStream
getOutputStream()
Get the output stream to write the response.Writer
getWriter()
Get the writer to write the response.
-
-
-
Method Detail
-
getOutputStream
OutputStream getOutputStream() throws IOException
Get the output stream to write the response. Must not be used if getWriter has been called.- Returns:
- The output stream
- Throws:
IOException
-
getWriter
Writer getWriter() throws IOException
Get the writer to write the response. Must not be used if getOutputStream has been called.- Returns:
- The writer
- Throws:
IOException
-
-