 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Fri May 11, 2007 3:35 pm Post subject: forzare scrittura |
|
|
ciao a tutti,
ho un piccolo problema che però non riesco a risolvere e che spero
possiate aiutarmi.
devo scrivere sulla seriale una stringa del tipo "JAVA", ma *forzare*
un carattere alla volta.
mi spiego meglio: quello che vorrei ottenere a basso livello è:
bitstart+codifica carattere+bitstop+...+bitstart+codifica carattere
+bitstop; mentre adesso ottengo: bitstart+cod_carattere+cod_carattere
+...+bitstop, anche se ad ogni invio di carattere faccio seguire un
flush().
in pratica come e cosa devo usare per forzare la scrittura sul
OutputStream?
ho provato con DataOutputStream, con FilterOutputStream, con
OutputStreamWriter e con PrintWriter ma il risultato è sempre lo
stesso; quindi la mia strategia del flush() non funziona oppure non
uso correttamente questi stream. qualcuno mi può dare un suggerimento?
grazie
Ale |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|