1 25 26 package net.killingar.servlet.filter; 27 28 29 import javax.servlet.ServletOutputStream ; 30 import java.io.DataOutputStream ; 31 import java.io.IOException ; 32 import java.io.OutputStream ; 33 34 35 public class FilterServletOutputStream extends ServletOutputStream 36 { 37 private DataOutputStream stream; 38 39 40 public FilterServletOutputStream(OutputStream output) 41 { 42 stream = new DataOutputStream (output); 43 } 44 45 46 public void write(int b) throws IOException 47 { 48 stream.write(b); 49 } 50 51 52 public void write(byte[] b) throws IOException 53 { 54 stream.write(b); 55 } 56 57 58 public void write(byte[] b, int off, int len) throws IOException 59 { 60 stream.write(b, off, len); 61 } 62 } 63 64 65 | Popular Tags |