Re: Mysterious Carriage Return/Line Feed characters
- From: "Boudewijn Dijkstra" <usenet@xxxxxxxxxxxxxxxxxxx>
- Date: Tue, 30 Aug 2005 21:40:18 +0200
<bmcdougald@xxxxxxxxxxx> schreef in bericht
news:1125417302.687716.115440@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>I solved this problem on a whim. I added a flush() call after every
> write() and that appears to have cleared up the problem.
That is a work-around, not a solution to the problem. To begin in solving the
problem, you should identify the stream that is inserting the characters. My
guess would be at PrintWriter.
Furthermore, your replace method is unneccessarily complex, even without
considering the existence of the String.replaceAll method.
.
- References:
- Mysterious Carriage Return/Line Feed characters
- From: bmcdougald
- Re: Mysterious Carriage Return/Line Feed characters
- From: bmcdougald
- Mysterious Carriage Return/Line Feed characters
- Prev by Date: Re: Commenting in Java
- Next by Date: Re: How Do I Write Listeners for Resizing or Maximizing a Window?
- Previous by thread: Re: Mysterious Carriage Return/Line Feed characters
- Next by thread: financial API with rollback
- Index(es):
Relevant Pages
|
Loading