You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2013/09/04 11:24:53 UTC
[jira] [Resolved] (CAMEL-6701)
org.apache.camel.util.IOHelper.loadText(InputStream) doesnt not return text
as written
[ https://issues.apache.org/jira/browse/CAMEL-6701?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-6701.
--------------------------------
Resolution: Fixed
> 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: Improvement
> Components: camel-core
> Reporter: Jan Matèrne
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 2.13.0
>
> Attachments: IOHelperTest.java
>
>
> 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