File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes I/O and Streams and the fly likes Please Help Me WIth Whois Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Please Help Me WIth Whois Server" Watch "Please Help Me WIth Whois Server" New topic
Author

Please Help Me WIth Whois Server

Maki Jav
Ranch Hand

Joined: May 09, 2002
Posts: 437
Hi all,
Here is the program that can get you details from a whois service like internic.com

Now the problem is that I want to make a bare bone whois server for this program
I have written the program below but somehow after read the input stream the server doesnot process the outputstream... it gets sort of stuck....
I tried Buffered Reader and InputStream for reading input from program. While using 'is' (InputStream) gets me to line "I am here" , using BufferedReader is not taking me beyond the while loop


Thank you in advance
Maki Jav
[ November 10, 2003: Message edited by: Maki Jav ]

Help gets you when you need it!
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
Ummm... if you want people to look at it, it would help if the formatting had some correlation to program structure, rather than randomly bouncing around. It's painful to try to sort out what's going on there...


"I'm not back." - Bill Harding, Twister
Maki Jav
Ranch Hand

Joined: May 09, 2002
Posts: 437
Hi,
I hope that some formatting I have done to the above post of mine will make it more readable!

Maki Jav
Maki Jav
Ranch Hand

Joined: May 09, 2002
Posts: 437
Jim,
Would it be not better that instead of using
while(inquiry!=null){
inquiry=br.readLine();
if(inquiry!=null)
System.out.println(inquiry);
}
I use
inquiry=br.readLine();
System.out.println(inquiry);
if(inquiry!=null)
inquiry=br.readLine();
System.out.println(inquiry);
br.close()
what you say?
Maki Jav
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Please Help Me WIth Whois Server