Exemplo n.º 1
0
 /// <summary>
 /// Constructs a new InputStreamReader on the InputStream
 /// <code>in</code>
 /// and
 /// CharsetDecoder
 /// <code>dec</code>
 /// .
 /// </summary>
 /// <param name="in">the source InputStream from which to read characters.</param>
 /// <param name="dec">the CharsetDecoder used by the character conversion.</param>
 public InputStreamReader(java.io.InputStream @in, java.nio.charset.CharsetDecoder
                          dec) : base(@in)
 {
     dec.averageCharsPerByte();
     this.@in = @in;
     decoder  = dec;
     bytes.limit(0);
 }