Package ninja.utils

Interface ResponseStreams


  • public interface ResponseStreams
    Make sure to only write to either the OutputStream OR the Writer...
    Author:
    rbauer
    • 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