1 16 17 package org.apache.ajp.tomcat4; 18 19 import java.io.IOException ; 20 import java.io.OutputStream ; 21 22 import org.apache.ajp.Ajp13; 23 24 public class Ajp13OutputStream extends OutputStream { 25 26 private Ajp13 ajp13; 27 28 Ajp13OutputStream(Ajp13 ajp13) { 29 this.ajp13 = ajp13; 30 } 31 32 public void write(int b) throws IOException { 33 byte[] bb = new byte[]{(byte)b}; 34 ajp13.doWrite(bb, 0, 1); 35 } 36 37 public void write(byte[] b, int off, int len) throws IOException { 38 ajp13.doWrite(b, off, len); 39 } 40 41 public void close() throws IOException { 42 } 43 44 public void flush() throws IOException { 45 } 46 } 47 | Popular Tags |