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