Last active
September 15, 2022 02:50
-
-
Save cozzin/79df90545e5319ca5e70e8b591082adb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OutputStream outputStream = null; | |
try { | |
outputStream = exchange.getResponseBody(); | |
outputStream.write(content.getBytes()); | |
outputStream.flush(); | |
} finally { | |
if (outputStream != null) { | |
outputStream.close(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment