title: Trying to remove end of the line character in java code in ODI
body: <p>We are using Java(java Beanshell) in ODI to parse a file.
  We are reading each line and then constructing the message with 4-5 lines combined and pushing on a JMS queue,</p>
  <p>To have a line feed we are adding \n at the end of the line.</p>
  <p>But when the message is posted on the queue, it takes \n as string instead of special characteristic.</p>
  <p>Code snippet:</p>
  <pre><code>while (line != null) {
                                  if (line.startsWith(&quot;010&quot;)){
                                                  start = true;
                                                  end = false;
                                                  jmsString = jmsString + line + newline;
                                  }else if (start == true &amp;&amp; end == false &amp;&amp; &quot;099&quot;){
                                                  jmsString = jmsString + line + newline;
                                                  jmsMessages.add(jmsString);
                                                  end = true;
                                                  start = false;
                                                  jmsString = &quot;&quot;;
                                  }else if (start == true &amp;&amp; end == false ){
                                                  jmsString = jmsString + line + newline;
                                  }else{
                                                  // do nothing
                                  }                                    
                                  line = reader.readLine();
                  }                            
                  
                  
                  reader.close();
                  
                  if (jmsMessage != null &amp;&amp; jmsMessage != &quot;&quot;){
              //3) Create queue session  
          QueueSession ses=con.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);  
           
          //4) Get the Queue object  
          Queue t = (Queue)ic.lookup(JMS_QUEUE); 
           
          //5) Create QueueSender object         
          QueueSender sender=ses.createSender(t);  
          
          //6) Create TextMessage object  
           TextMessage msg=ses.createTextMessage();  
           msg.setText(jmsMessage);
            
          //7) Send message  
          sender.send(msg); 
  
  
      
                              
              Output:
              testing  
  </code></pre>
  <p>\n0207145636625896767668042052248950786073950000676680420527052249  CE7 10                                                                                                                                                                                                                            \n040714563662589676766804205224895078607395000071456366258967                8507232089       LDC DUAL        202002141815ET</p>