src/share/classes/java/io/FilterReader.java

Print this page
rev 10048 : 8044740: Convert all JDK versions used in @since tag to 1.n[.n] in jdk repo
Reviewed-by:


  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package java.io;
  27 
  28 
  29 /**
  30  * Abstract class for reading filtered character streams.
  31  * The abstract class <code>FilterReader</code> itself
  32  * provides default methods that pass all requests to
  33  * the contained stream. Subclasses of <code>FilterReader</code>
  34  * should override some of these methods and may also provide
  35  * additional methods and fields.
  36  *
  37  * @author      Mark Reinhold
  38  * @since       JDK1.1
  39  */
  40 
  41 public abstract class FilterReader extends Reader {
  42 
  43     /**
  44      * The underlying character-input stream.
  45      */
  46     protected Reader in;
  47 
  48     /**
  49      * Creates a new filtered reader.
  50      *
  51      * @param in  a Reader object providing the underlying stream.
  52      * @throws NullPointerException if <code>in</code> is <code>null</code>
  53      */
  54     protected FilterReader(Reader in) {
  55         super(in);
  56         this.in = in;
  57     }
  58 




  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package java.io;
  27 
  28 
  29 /**
  30  * Abstract class for reading filtered character streams.
  31  * The abstract class <code>FilterReader</code> itself
  32  * provides default methods that pass all requests to
  33  * the contained stream. Subclasses of <code>FilterReader</code>
  34  * should override some of these methods and may also provide
  35  * additional methods and fields.
  36  *
  37  * @author      Mark Reinhold
  38  * @since       1.1
  39  */
  40 
  41 public abstract class FilterReader extends Reader {
  42 
  43     /**
  44      * The underlying character-input stream.
  45      */
  46     protected Reader in;
  47 
  48     /**
  49      * Creates a new filtered reader.
  50      *
  51      * @param in  a Reader object providing the underlying stream.
  52      * @throws NullPointerException if <code>in</code> is <code>null</code>
  53      */
  54     protected FilterReader(Reader in) {
  55         super(in);
  56         this.in = in;
  57     }
  58