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
59 /**
60 * Reads a single character.
61 *
62 * @exception IOException If an I/O error occurs
63 */
64 public int read() throws IOException {
65 return in.read();
66 }
67
68 /**
69 * Reads characters into a portion of an array.
70 *
71 * @exception IOException If an I/O error occurs
72 */
73 public int read(char cbuf[], int off, int len) throws IOException {
74 return in.read(cbuf, off, len);
75 }
76
77 /**
78 * Skips characters.
79 *
80 * @exception IOException If an I/O error occurs
81 */
82 public long skip(long n) throws IOException {
83 return in.skip(n);
84 }
85
86 /**
87 * Tells whether this stream is ready to be read.
88 *
89 * @exception IOException If an I/O error occurs
90 */
91 public boolean ready() throws IOException {
|
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
59 /**
60 * Reads a single character.
61 *
62 * @exception IOException If an I/O error occurs
63 */
64 public int read() throws IOException {
65 return in.read();
66 }
67
68 /**
69 * Reads characters into a portion of an array.
70 *
71 * @exception IOException If an I/O error occurs
72 * @exception IndexOutOfBoundsException {@inheritDoc}
73 */
74 public int read(char cbuf[], int off, int len) throws IOException {
75 return in.read(cbuf, off, len);
76 }
77
78 /**
79 * Skips characters.
80 *
81 * @exception IOException If an I/O error occurs
82 */
83 public long skip(long n) throws IOException {
84 return in.skip(n);
85 }
86
87 /**
88 * Tells whether this stream is ready to be read.
89 *
90 * @exception IOException If an I/O error occurs
91 */
92 public boolean ready() throws IOException {
|