title: How to split the my flowfile content based on '\n'?
body: <p>i have try to create sample custom processor for read lines and made some changes in input lines then process into flowfile.</p>
  
  <p>This is my code to read flowfile.</p>
  
  <pre><code>String inputRow;
  session.read(flowFile, new InputStreamCallback() {
                  @Override
                  public void process(InputStream in) throws IOException {
                    inputRow = IOUtils.toString(in);
                  }
              });
  </code></pre>
  
  <p>observed that code from below reference.</p>
  
  <p><a href="http://www.nifi.rocks/developing-a-custom-apache-nifi-processor-json/" rel="nofollow noreferrer">http://www.nifi.rocks/developing-a-custom-apache-nifi-processor-json/</a></p>
  
  <p>After read lines i can't able split those lines based on LineFeed character.</p>
  
  <p>upstream connection for my processor yields below my sample input.</p>
  
  <p><strong>My Sample input line:</strong></p>
  
  <pre><code>No,Name,value
  1,Si,21
  2,LI,321
  3,Ji,11
  </code></pre>
  
  <p>Above lines can able to stored in <strong>"inputRow"</strong>.</p>
  
  <p>But i have using below code to split it based on '\n'.</p>
  
  <pre><code>String[] splits=inputRow.split("\n");
  </code></pre>
  
  <p>i have tried '\n' and '\r\n' to split those lines but it's not worked.</p>
  
  <p>Any one please guide me to split those lines as below expected output.</p>
  
  <pre><code>splits[0]=No,Name,value
  splits[1]=1,Si,21
  splits[2]=2,LI,321
  splits[3]=3,Ji,11
  </code></pre>
  
  <p>Any help appreciated.</p>