/** * Constructs a new InputStreamReader on the InputStream {@code in} and * CharsetDecoder {@code dec}. * * @param in * the source InputStream from which to read characters. * @param dec * the CharsetDecoder used by the character conversion. */ public InputStreamReader(InputStream inJ, java.nio.charset.CharsetDecoder dec) : base(inJ) { dec.averageCharsPerByte(); this.inJ = inJ; decoder = dec; bytes.limit(0); }