Skip to content

Instantly share code, notes, and snippets.

@brianjriddle
Created September 15, 2010 12:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brianjriddle/580670 to your computer and use it in GitHub Desktop.
Save brianjriddle/580670 to your computer and use it in GitHub Desktop.
/**
* Finish a response.
*/
public void finishResponse() {
try {
if (writer != null) {
writer.close();
} else if (outputStream != null) {
outputStream.close();
}
} catch (IOException e) {
logger.fine("Exception when closing writer.");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment