ninja.utils
Interface ResponseStreams

All Known Implementing Classes:
ResponseStreamsServlet

public interface ResponseStreams

Make sure to only write to either the OutputStream OR the Writer...

Author:
rbauer

Method Summary
 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


Copyright © 2012. All Rights Reserved.