Re: RFC: Line Ending Conversion between Unix and Windows ....
Echoing Sebastian, a possibility would be to port Ant's FixCrlfFilter (implements java.io.FilterReader) to [io]. Quite some changes would be needed, but this code has at least been heavily tested. -Matt On Apr 19, 2010, at 12:16 PM, Siegfried Goeschl wrote: Hi folks, I just had to type stupid code to do line ending conversion between Windows and Unix since I couldn't find existing code doing that. Would this be a useful contribution to Commons (e.g. lang, codec, io) Thanks in advance, Siegfried Goeschl - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
RFC: Line Ending Conversion between Unix and Windows ....
Hi folks, I just had to type stupid code to do line ending conversion between Windows and Unix since I couldn't find existing code doing that. Would this be a useful contribution to Commons (e.g. lang, codec, io) Thanks in advance, Siegfried Goeschl - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: RFC: Line Ending Conversion between Unix and Windows ....
On 19/04/2010, Siegfried Goeschl siegfried.goes...@it20one.at wrote: Hi folks, I just had to type stupid code to do line ending conversion between Windows and Unix since I couldn't find existing code doing that. Would this be a useful contribution to Commons (e.g. lang, codec, io) Many editors support EOL conversions, as do Ant and Maven. It's also easy to do in scripting languages such as Perl. I'm not saying it there is no need to have a Java implementation as well, but how useful it might be would depend on how easy it is to use, i.e. the proposed API. Thanks in advance, Siegfried Goeschl - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: Line Ending Conversion between Unix and Windows ....
Forgive me if I'm missing something obvious. Can't this be done with just String.replace() ? Michael Akerman Systems Analyst University IT Services - Original Message - From: Siegfried Goeschl siegfried.goes...@it20one.at To: Commons Users List user@commons.apache.org Sent: Monday, April 19, 2010 12:16 PM Subject: RFC: Line Ending Conversion between Unix and Windows Hi folks, I just had to type stupid code to do line ending conversion between Windows and Unix since I couldn't find existing code doing that. Would this be a useful contribution to Commons (e.g. lang, codec, io) Thanks in advance, Siegfried Goeschl - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: Line Ending Conversion between Unix and Windows ....
Hi Michael, this was my initial reaction as well ... :-) ... afterwards I had to write code to transform to platform specific line endings or repair strings with potentially mixed line endings. Having said that it is not difficult to write but existing code would have been appreciated. Cheers, Siegfried Goeschl On 19.04.10 22:08, E. Michael Akerman wrote: Forgive me if I'm missing something obvious. Can't this be done with just String.replace() ? Michael Akerman Systems Analyst University IT Services - Original Message - From: Siegfried Goeschl siegfried.goes...@it20one.at To: Commons Users List user@commons.apache.org Sent: Monday, April 19, 2010 12:16 PM Subject: RFC: Line Ending Conversion between Unix and Windows Hi folks, I just had to type stupid code to do line ending conversion between Windows and Unix since I couldn't find existing code doing that. Would this be a useful contribution to Commons (e.g. lang, codec, io) Thanks in advance, Siegfried Goeschl - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org