AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

forzare scrittura

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java (Italian)
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Fri May 11, 2007 3:35 pm    Post subject: forzare scrittura Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.