Chat program
Hi,
I'm currently writing a chat program, and I have some problems with getting
end sending text. I have a thread that reads a text line and sends it to
the server or to my output window; depending on what arguments i enter.
My arguments in the class of the tread are a BufferedReader and a
PrintWriter. But what should I give as argument in PrintWriter an
BufferedReader??
Not System.out or System.in, because that's for command-line stuff..
I have a string from my JTextField that must be submitted.
Can anyone help me?
--Christophe.
.
Relevant Pages
- Chat progr : printwriter problem
... I'm currently writing a chat program, and I have some problems with getting ... My arguments in the class of the tread are a BufferedReader and a ... But what should I give as argument in PrintWriter an ... (comp.lang.java.gui) - Streams
... Can i use the following constructions in a server and client without being ... BufferedReader in = new BufferedReader( ... PrintWriter pout = new PrintWriter ... (comp.lang.java.help) - Re: URLEncoder -- When Is It Really Needed? (I Seem to Misunderstand It.)
... I'm writing a class that needs to be used ... won't PrintWriter handle the standard control characters ... examples I could find in my own books and online never handled binary data ... (comp.lang.java.programmer) - Reading input and writing output
... public static void main(String[] args) throws java.io.IOException ... BufferedReader br = new BufferedReader; ... PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter( ... out.println(Integer.toString(num)); ... (comp.lang.java) - Re: Java Networking
... been writing over the past few weeks. ... and the two sides update each over based upon string being sent over ... AFAICT you are using a PrintWriter to send the file. ... sending pure text, you really should be using a FileOutputStream. ... (comp.lang.java.programmer) |
|