title: Passing file contents as method arguments (E.g. String)
body: <p>I am working on a library which intakes File as <code>InputStreamReader</code> </p>
  
  <pre><code>Reader fileReader = new InputStreamReader(new FileInputStream(new File("inputFile"),"UTF-8");
  
  instances.addThruPipe(new CsvIterator(fileReader, Pattern.compile("^(\\S*)[\\s,]*(\\S*)[\\s,]*(.*)$"), 3, 2, 1));
  </code></pre>
  
  <p>I have another method which creates the data within the file "inputFile" (a tab separated one). </p>
  
  <p>Is is possible to completely get rid of the physical file creation process and pass the file as arguments? </p>
  
  <pre><code>String source = "This is the source of my input stream";
  InputStream in = IOUtils.toInputStream(source, "UTF-8");
  </code></pre>
  
  <p>If I could do with the above method, How do I take care of the '\t' and '\n' when creating such string?</p>