title: how to send a stream to another object?
body: <p>How do I <code>stream</code> each line to the <code>Parser</code> instance?</p>
  
  <pre><code>package net.bounceme.dur.files;
  
  import java.io.IOException;
  import java.nio.file.Files;
  import java.nio.file.Paths;
  import java.util.logging.Level;
  import java.util.logging.Logger;
  import java.util.stream.Stream;
  
  public class StreamFile {
  
      private final static Logger log = Logger.getLogger(StreamFile.class.getName());
      private Parser p = new Parser();
  
      public StreamFile() {
      }
  
      public void read(String filePath) {
          Stream&lt;String&gt; stream = null;
          try {
              stream = Files.lines(Paths.get(filePath));
          } catch (IOException ex) {
              Logger.getLogger(StreamFile.class.getName()).log(Level.SEVERE, null, ex);
          }
          stream.forEach(System.out::println);
      }
  
  }
  </code></pre>