1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
package org.mule.module.cxf.support; |
8 | |
|
9 | |
import java.io.IOException; |
10 | |
import java.io.OutputStream; |
11 | |
|
12 | |
public class DelegatingOutputStream extends OutputStream |
13 | |
{ |
14 | |
private OutputStream outputStream; |
15 | |
|
16 | |
|
17 | |
public DelegatingOutputStream(OutputStream outputStream) |
18 | |
{ |
19 | 0 | super(); |
20 | 0 | this.outputStream = outputStream; |
21 | 0 | } |
22 | |
|
23 | |
public OutputStream getOutputStream() |
24 | |
{ |
25 | 0 | return outputStream; |
26 | |
} |
27 | |
|
28 | |
public void setOutputStream(OutputStream outputStream) |
29 | |
{ |
30 | 0 | this.outputStream = outputStream; |
31 | 0 | } |
32 | |
|
33 | |
public void close() throws IOException |
34 | |
{ |
35 | 0 | outputStream.close(); |
36 | 0 | } |
37 | |
|
38 | |
public boolean equals(Object obj) |
39 | |
{ |
40 | 0 | return outputStream.equals(obj); |
41 | |
} |
42 | |
|
43 | |
public void flush() throws IOException |
44 | |
{ |
45 | 0 | outputStream.flush(); |
46 | 0 | } |
47 | |
|
48 | |
public int hashCode() |
49 | |
{ |
50 | 0 | return outputStream.hashCode(); |
51 | |
} |
52 | |
|
53 | |
public String toString() |
54 | |
{ |
55 | 0 | return outputStream.toString(); |
56 | |
} |
57 | |
|
58 | |
public void write(byte[] b, int off, int len) throws IOException |
59 | |
{ |
60 | 0 | outputStream.write(b, off, len); |
61 | 0 | } |
62 | |
|
63 | |
public void write(byte[] b) throws IOException |
64 | |
{ |
65 | 0 | outputStream.write(b); |
66 | 0 | } |
67 | |
|
68 | |
public void write(int b) throws IOException |
69 | |
{ |
70 | 0 | outputStream.write(b); |
71 | 0 | } |
72 | |
|
73 | |
} |
74 | |
|
75 | |
|