commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrian Crum <adrian.c...@yahoo.com>
Subject Re: Line Ending Conversion between Unix and Windows ....
Date Mon, 19 Apr 2010 22:35:52 GMT
System.getProperty("line.separator")

http://java.sun.com/docs/books/tutorial/essential/environment/sysprop.html

-Adrian


--- On Mon, 4/19/10, Siegfried Goeschl <siegfried.goeschl@it20one.at> wrote:

> From: Siegfried Goeschl <siegfried.goeschl@it20one.at>
> Subject: Re: Line Ending Conversion between Unix and Windows ....
> To: "Commons Users List" <user@commons.apache.org>
> Date: Monday, April 19, 2010, 3:01 PM
> 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.goeschl@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-unsubscribe@commons.apache.org
> > For additional commands, e-mail: user-help@commons.apache.org
> >
> >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> > For additional commands, e-mail: user-help@commons.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
> 
> 


      

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message