1 20 package org.apache.maven.cactus.sample.util; 21 22 import java.io.DataOutputStream ; 23 import java.io.IOException ; 24 import java.io.OutputStream ; 25 26 import javax.servlet.ServletOutputStream ; 27 28 41 public class FilterServletOutputStream extends ServletOutputStream 42 { 43 46 private DataOutputStream stream; 47 48 54 public FilterServletOutputStream(OutputStream theOutput) 55 { 56 stream = new DataOutputStream (theOutput); 57 } 58 59 61 64 public void write(int theByte) throws IOException 65 { 66 stream.write(theByte); 67 } 68 69 72 public void write(byte[] theBytes) throws IOException 73 { 74 stream.write(theBytes); 75 } 76 77 80 public void write(byte[] theByte, int theOffset, int theLength) 81 throws IOException 82 { 83 stream.write(theByte, theOffset, theLength); 84 } 85 } 86 | Popular Tags |