WebBox Klassenbibliothek
ulrich
2021-01-28 96dfd62fbfe771616045a253bbeb1415538e815f
commit | author | age
bc9f6a 1 /*
U 2     WebBox - Dein Server.
3     Copyright (C) 2017 Ulrich Hilger, http://uhilger.de
4
5     This program is free software: you can redistribute it and/or modify
6     it under the terms of the GNU Affero General Public License as
7     published by the Free Software Foundation, either version 3 of the
8     License, or (at your option) any later version.
9
10     This program is distributed in the hope that it will be useful,
11     but WITHOUT ANY WARRANTY; without even the implied warranty of
12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13     GNU Affero General Public License for more details.
14
15     You should have received a copy of the GNU Affero General Public License
16     along with this program.  If not, see <http://www.gnu.org/licenses/>.
17  */
18 package de.uhilger.wbx.web;
19
20 import java.io.DataOutputStream;
21 import java.io.IOException;
22 import java.io.OutputStream;
23 import javax.servlet.ServletOutputStream;
541b28 24 import javax.servlet.WriteListener;
bc9f6a 25
U 26 /**
27  *
28  * @author ulrich
29  */
30 public class FilterServletOutputStream extends ServletOutputStream {
31  
32   private DataOutputStream stream; 
33  
34   public FilterServletOutputStream(OutputStream output) { 
35     stream = new DataOutputStream(output); 
36   }
37  
38   public void write(int b) throws IOException  { 
39     stream.write(b); 
40   }
41  
42   public void write(byte[] b) throws IOException  { 
43     stream.write(b); 
44   }
45  
46   public void write(byte[] b, int off, int len) throws IOException  { 
47     stream.write(b,off,len); 
48   } 
8771a5 49
828ffa 50   //@Override
U 51   public boolean isReady() {
52       // was ist hier zu tun...
53       return true;
54   }
8771a5 55
828ffa 56   @Override
U 57   public void setWriteListener(WriteListener writeListener) {
58       //was ist hier zu tun..
59   }
541b28 60
bc9f6a 61  
U 62 }