Basic I/O: PrintWriter
1 posts in topic
Flat View  Flat View

Posted By:   Sanjit_Singh
Posted On:   Friday, October 4, 2002 05:35 AM

Hi All,

I have a very basic I/O question concerning PrintWriter. I am basically new to JAVA, so any help would be appreciated.

I have a method:
public void onResponseSent(PrintWriter writer){

How can I call this method?. My main aim is to transfer the contents of an XML file from one class to this class using the above method. In this method then I want to manipluate the contents of the XML document. How can I achieve this?
I can only use the above method, so any helpful code would be appreciated.


Re: Basic I/O: PrintWriter

Posted By:   eimi_nos  
Posted On:   Friday, October 4, 2002 07:45 AM

If you are to transfer the contents of a file and manipulate (and print) with your method "onResponseSent", it might be natural to modify the method, if it's your own method, to a two argument (PrintWriter and file contents) method.

onResponseSent(PrintWriter, String)
About | Sitemap | Contact