1 16 package org.apache.commons.io.input; 17 18 import java.io.FilterReader ; 19 import java.io.IOException ; 20 import java.io.Reader ; 21 22 31 public abstract class ProxyReader extends FilterReader { 32 33 private Reader proxy; 34 35 39 public ProxyReader(Reader proxy) { 40 super(proxy); 41 this.proxy = proxy; 42 } 43 44 45 public int read() throws IOException { 46 return this.proxy.read(); 47 } 48 49 50 public int read(char[] chr) throws IOException { 51 return this.proxy.read(chr); 52 } 53 54 55 public int read(char[] chr, int st, int end) throws IOException { 56 return this.proxy.read(chr, st, end); 57 } 58 59 60 public long skip(long ln) throws IOException { 61 return this.proxy.skip(ln); 62 } 63 64 65 public boolean ready() throws IOException { 66 return this.proxy.ready(); 67 } 68 69 70 public void close() throws IOException { 71 this.proxy.close(); 72 } 73 74 75 public synchronized void mark(int idx) throws IOException { 76 this.proxy.mark(idx); 77 } 78 79 80 public synchronized void reset() throws IOException { 81 this.proxy.reset(); 82 } 83 84 85 public boolean markSupported() { 86 return this.proxy.markSupported(); 87 } 88 89 } 90 | Popular Tags |