1 7 8 package java.io; 9 10 11 23 24 public abstract class FilterReader extends Reader { 25 26 29 protected Reader in; 30 31 37 protected FilterReader(Reader in) { 38 super(in); 39 this.in = in; 40 } 41 42 47 public int read() throws IOException { 48 return in.read(); 49 } 50 51 56 public int read(char cbuf[], int off, int len) throws IOException { 57 return in.read(cbuf, off, len); 58 } 59 60 65 public long skip(long n) throws IOException { 66 return in.skip(n); 67 } 68 69 74 public boolean ready() throws IOException { 75 return in.ready(); 76 } 77 78 81 public boolean markSupported() { 82 return in.markSupported(); 83 } 84 85 90 public void mark(int readAheadLimit) throws IOException { 91 in.mark(readAheadLimit); 92 } 93 94 99 public void reset() throws IOException { 100 in.reset(); 101 } 102 103 108 public void close() throws IOException { 109 in.close(); 110 } 111 112 } 113 | Popular Tags |