Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 6506f53f93
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (22 sloc) 0.445 kB
# -*- mode: snippet -*-
# contributor : eggcaker <eggcaker@gmail.com>
# name : writer
# key : writer
# --
#name : PrintWriter
# --
PrintWriter writer = null;
try {
writer =
new PrintWriter(
new BufferedWriter(
new OutputStreamWriter(out, ${1:"UTF-8"})), true);
$2
writer.flush();
} catch (IOException ex) {
$3
} finally {
try {
writer.close();
} catch (Exception ignore) { }
}
Jump to Line
Something went wrong with that request. Please try again.