Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
ReaderInputStream |
|
| 1.0;1 |
1 | /* | |
2 | * Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com | |
3 | * The software in this package is published under the terms of the CPAL v1.0 | |
4 | * license, a copy of which has been included with this distribution in the | |
5 | * LICENSE.txt file. | |
6 | */ | |
7 | package org.mule.config; | |
8 | ||
9 | import java.io.IOException; | |
10 | import java.io.InputStream; | |
11 | import java.io.Reader; | |
12 | ||
13 | public class ReaderInputStream extends InputStream | |
14 | { | |
15 | 0 | private Reader reader = null; |
16 | ||
17 | public ReaderInputStream(Reader reader) | |
18 | 0 | { |
19 | 0 | this.reader = reader; |
20 | 0 | } |
21 | ||
22 | /** | |
23 | * @see java.io.InputStream#read() | |
24 | */ | |
25 | public int read() throws IOException | |
26 | { | |
27 | 0 | return reader.read(); |
28 | } | |
29 | } |