Re: Mysterious Carriage Return/Line Feed characters



<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.


.



Relevant Pages


Loading