1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
package org.mule.model.streaming; |
12 | |
|
13 | |
import java.io.IOException; |
14 | |
import java.io.InputStream; |
15 | |
|
16 | |
public class DelegatingInputStream extends InputStream |
17 | |
{ |
18 | |
|
19 | |
private InputStream delegate; |
20 | |
|
21 | |
public DelegatingInputStream(InputStream delegate) |
22 | 0 | { |
23 | 0 | this.delegate = delegate; |
24 | 0 | } |
25 | |
|
26 | |
public int available() throws IOException |
27 | |
{ |
28 | 0 | return delegate.available(); |
29 | |
} |
30 | |
|
31 | |
public synchronized void mark(int readlimit) |
32 | |
{ |
33 | 0 | delegate.mark(readlimit); |
34 | 0 | } |
35 | |
|
36 | |
public boolean markSupported() |
37 | |
{ |
38 | 0 | return delegate.markSupported(); |
39 | |
} |
40 | |
|
41 | |
public synchronized void reset() throws IOException |
42 | |
{ |
43 | 0 | delegate.reset(); |
44 | 0 | } |
45 | |
|
46 | |
public long skip(long n) throws IOException |
47 | |
{ |
48 | 0 | return delegate.skip(n); |
49 | |
} |
50 | |
|
51 | |
public int read() throws IOException |
52 | |
{ |
53 | 0 | return delegate.read(); |
54 | |
} |
55 | |
|
56 | |
public int read(byte b[]) throws IOException |
57 | |
{ |
58 | 0 | return delegate.read(b); |
59 | |
} |
60 | |
|
61 | |
public int read(byte b[], int off, int len) throws IOException |
62 | |
{ |
63 | 0 | return delegate.read(b, off, len); |
64 | |
} |
65 | |
|
66 | |
public void close() throws IOException |
67 | |
{ |
68 | 0 | delegate.close(); |
69 | 0 | } |
70 | |
|
71 | |
} |