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