View Javadoc
1   package com.github.searls.jasmine.io;
2   
3   import org.apache.commons.io.IOUtils;
4   
5   import java.io.IOException;
6   import java.io.InputStream;
7   
8   public class IOUtilsWrapper {
9   
10    public String toString(InputStream inputStream) throws IOException {
11      return IOUtils.toString(inputStream);
12    }
13  
14    public String toString(String name) throws IOException {
15      return this.toString(this.getClass().getResourceAsStream(name));
16    }
17  
18  }