System.out PrintWriter print() and flush() not flushing?



Hello!

I have a thread that listens to a server socket. When a message
arrives, I print it via

System.out.println("...");

While the program is listening and not receiving a message I simply
want to print one dot "." so the user can see the program is still
listening. However, the dots are not printed, they only appear after
another call to println(). I also call flush() after print but it
doesn't flush the buffer.

Does anyone know how to print only a dot without a newline? How?

Karsten
.



Relevant Pages

  • Re: System.out PrintWriter print() and flush() not flushing?
    ... I have a thread that listens to a server socket. ... While the program is listening and not receiving a message I simply ... Does anyone know how to print only a dot without a newline? ... if (wasNullBefore) ...
    (comp.lang.java.help)
  • Re: System.out PrintWriter print() and flush() not flushing?
    ... While the program is listening and not receiving a message I simply ... Does anyone know how to print only a dot without a newline? ... Posted via NewsDemon.com - Premium Uncensored Newsgroup Service ... Unlimited Access, Anonymous Accounts, Uncensored Broadband Access ...
    (comp.lang.java.help)
  • Re: Death in a Scotch Sitting Room - another one gone
    ... Any chance of another series of ISIHAC soon? ... Get a digital radio, listen to an old ISIHAC every Monday. ... Which means not listening to R4 at 6:30pm as well as at the usual ... groups at asylum dot nildram dot co dot uk ...
    (uk.misc)
  • Re: Spectrum WAV/MP3s ?
    ... listening to a screen$ loading sound not totally unpleasant? ... I used to like listening to speccy loading sounds. ... Annoy his mind here: pjf at cmp dot liv dot ack dot ook ...
    (comp.sys.sinclair)
  • Re: System.out PrintWriter print() and flush() not flushing?
    ... While the program is listening and not receiving a message I simply ... Does anyone know how to print only a dot without a newline? ... "Unlike the PrintStream class, if automatic flushing is enabled it will be done only when one of the println, printf, or format methods is invoked, rather than whenever a newline character happens to be output. ... Unlimited Access, Anonymous Accounts, Uncensored Broadband Access ...
    (comp.lang.java.help)