/* */ public OutputStreamWriter(OutputStream paramOutputStream, String paramString) /* */ throws UnsupportedEncodingException /* */ { /* 97 */ super(paramOutputStream); /* 98 */ if (paramString == null) /* 99 */ throw new NullPointerException("charsetName"); /* 100 */ this.se = StreamEncoder.forOutputStreamWriter(paramOutputStream, this, paramString); /* */ }
/** * Create an OutputStreamWriter that uses the default character encoding. * * @param out An OutputStream */ public OutputStreamWriter(OutputStream out) { super(out); try { se = StreamEncoder.forOutputStreamWriter(out, this, (String) null); } catch (UnsupportedEncodingException e) { throw new Error(e); } }
/* */ public OutputStreamWriter( OutputStream paramOutputStream, CharsetEncoder paramCharsetEncoder) /* */ { /* 149 */ super(paramOutputStream); /* 150 */ if (paramCharsetEncoder == null) /* 151 */ throw new NullPointerException("charset encoder"); /* 152 */ this.se = StreamEncoder.forOutputStreamWriter(paramOutputStream, this, paramCharsetEncoder); /* */ }
/* */ public OutputStreamWriter(OutputStream paramOutputStream) /* */ { /* 109 */ super(paramOutputStream); /* */ try { /* 111 */ this.se = StreamEncoder.forOutputStreamWriter(paramOutputStream, this, (String) null); /* */ } catch (UnsupportedEncodingException localUnsupportedEncodingException) { /* 113 */ throw new Error(localUnsupportedEncodingException); /* */ } /* */ }
/* */ public OutputStreamWriter(OutputStream paramOutputStream, Charset paramCharset) /* */ { /* 130 */ super(paramOutputStream); /* 131 */ if (paramCharset == null) /* 132 */ throw new NullPointerException("charset"); /* 133 */ this.se = StreamEncoder.forOutputStreamWriter(paramOutputStream, this, paramCharset); /* */ }
/** * Create an OutputStreamWriter that uses the given charset. * * @param out An OutputStream * @param cs A charset * @since 1.4 * @spec JSR-51 */ public OutputStreamWriter(OutputStream out, Charset cs) { super(out); if (cs == null) throw new NullPointerException("charset"); se = StreamEncoder.forOutputStreamWriter(out, this, cs); }
/** * Create an OutputStreamWriter that uses the named charset. * * @param out An OutputStream * @param charsetName The name of a supported {@link java.nio.charset.Charset * </code>charset<code>} * @exception UnsupportedEncodingException If the named encoding is not supported */ public OutputStreamWriter(OutputStream out, String charsetName) throws UnsupportedEncodingException { super(out); if (charsetName == null) throw new NullPointerException("charsetName"); se = StreamEncoder.forOutputStreamWriter(out, this, charsetName); }
/** * Create an OutputStreamWriter that uses the given charset encoder. * * @param out An OutputStream * @param enc A charset encoder * @since 1.4 * @spec JSR-51 */ public OutputStreamWriter(OutputStream out, CharsetEncoder enc) { super(out); if (enc == null) throw new NullPointerException("charset encoder"); se = StreamEncoder.forOutputStreamWriter(out, this, enc); }