You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Jan Matèrne (JIRA)" <ji...@apache.org> on 2013/09/03 11:39:51 UTC

[jira] [Created] (CAMEL-6701) org.apache.camel.util.IOHelper.loadText(InputStream) doesnt not return text as written

Jan Matèrne created CAMEL-6701:
----------------------------------

             Summary: org.apache.camel.util.IOHelper.loadText(InputStream) doesnt not return text as written
                 Key: CAMEL-6701
                 URL: https://issues.apache.org/jira/browse/CAMEL-6701
             Project: Camel
          Issue Type: Bug
          Components: camel-core
            Reporter: Jan Matèrne
            Priority: Minor


This method does not return the text as written. If there is a text file WITHOUT a last \n this differs.
The implementation in Camel reads line by line using a BufferedReader, so it cant know if there is a \n at the last line.
The implementation of commons-io uses a StringWriter where it copies all bytes into.
https://svn.apache.org/repos/asf/commons/proper/io/trunk/src/main/java/org/apache/commons/io/IOUtils.java 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira