} catch (UnsupportedEncodingException uee) {
throw new RuntimeException("UTF-8 not supported", uee);
}
} else if ("Windows-1252".equalsIgnoreCase(enc)) {
this.encoding = "Windows-1252";
this.writer = new NcrEscapingWindows1252OutputStreamWriter(out);
} else {
throw new IllegalArgumentException(
"Encoding must be UTF-8 or Windows-1252.");
}
}