Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
Unknown
Description
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