01: /*
02: * (C) Copyright 2000 - 2003 Nabh Information Systems, Inc.
03: *
04: * This program is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU General Public License
06: * as published by the Free Software Foundation; either version 2
07: * of the License, or (at your option) any later version.
08: *
09: * This program is distributed in the hope that it will be useful,
10: * but WITHOUT ANY WARRANTY; without even the implied warranty of
11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12: * GNU General Public License for more details.
13: *
14: * You should have received a copy of the GNU General Public License
15: * along with this program; if not, write to the Free Software
16: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17: *
18: */
19:
20: package com.nabhinc.portal.container;
21:
22: import java.io.IOException;
23: import java.io.OutputStream;
24:
25: import javax.servlet.ServletOutputStream;
26:
27: /**
28: *
29: *
30: * @author Padmanabh dabke
31: * (c) 2003 Nabh Information Systems, Inc. All Rights Reserved.
32: */
33: public class ServletOutputStreamImpl extends ServletOutputStream {
34:
35: private OutputStream sosiOutputStream = null;
36:
37: /**
38: *
39: * @param resp
40: * @throws IOException
41: */
42: public ServletOutputStreamImpl(RenderResponseImpl resp)
43: throws IOException {
44: sosiOutputStream = resp.getPortletOutputStream();
45: }
46:
47: /**
48: * @see java.io.OutputStream#write(int)
49: */
50: public void write(int b) throws IOException {
51: sosiOutputStream.write(b);
52:
53: }
54:
55: }
|