1 28 29 package com.caucho.vfs; 30 31 import java.io.IOException ; 32 33 public class StreamFilter extends StreamImpl { 34 protected StreamImpl next; 35 36 public void init(StreamImpl next) 37 { 38 this.next = next; 39 } 40 41 public boolean canRead() 42 { 43 return next.canRead(); 44 } 45 46 public int read(byte []buffer, int offset, int length) throws IOException 47 { 48 return next.read(buffer, offset, length); 49 } 50 51 public int getAvailable() throws IOException 52 { 53 return next.getAvailable(); 54 } 55 56 public boolean canWrite() 57 { 58 return next.canWrite(); 59 } 60 61 public void write(byte []buffer, int offset, int length, boolean atEnd) 62 throws IOException 63 { 64 next.write(buffer, offset, length, atEnd); 65 } 66 67 public void flush() throws IOException 68 { 69 next.flush(); 70 } 71 72 public void close() throws IOException 73 { 74 next.close(); 75 } 76 } 77 | Popular Tags |