View Javadoc
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      private Reader reader = null;
16  
17      public ReaderInputStream(Reader reader)
18      {
19          this.reader = reader;
20      }
21  
22      /**
23       * @see java.io.InputStream#read()
24       */
25      public int read() throws IOException
26      {
27          return reader.read();
28      }
29  }