1 29 30 package com.caucho.server.connection; 31 32 import javax.servlet.ServletOutputStream ; 33 import java.io.IOException ; 34 import java.io.OutputStream ; 35 36 39 public class ServletOutputStreamImpl extends ServletOutputStream { 40 private OutputStream _out; 41 42 public ServletOutputStreamImpl() 43 { 44 } 45 46 49 public void init(OutputStream out) 50 { 51 _out = out; 52 } 53 54 57 public final void write(int b) throws IOException 58 { 59 _out.write(b); 60 } 61 62 65 public final void write(byte []buf, int offset, int len) throws IOException 66 { 67 _out.write(buf, offset, len); 68 } 69 70 public final void flush() throws IOException 71 { 72 _out.flush(); 73 } 74 75 public final void close() throws IOException 76 { 77 } 78 } 79 | Popular Tags |