Package ninja.utils
Interface ResponseStreams
-
public interface ResponseStreamsMake 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 OutputStreamgetOutputStream()Get the output stream to write the response.WritergetWriter()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
-
-