File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Binding a input character stream to an HTML page transmitted over HTTP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Binding a input character stream to an HTML page transmitted over HTTP" Watch "Binding a input character stream to an HTML page transmitted over HTTP" New topic
Author

Binding a input character stream to an HTML page transmitted over HTTP

Steve Buck
Ranch Hand

Joined: Nov 23, 2004
Posts: 45
Basically I want to find a way to create an input character stream from the HTML kicked back from an HTTP request.

So I can select a URL, the code would then be able to grab the HTML and turn it to an input stream.

I'm not looking for anything to parse it--thats all done by me programmatically.

I just need to -get- the data somehow.

I have no idea what to look into. I've never touched this sort of stuff in Java (or any language heh)
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Look at the URL and HttpURLConnection classes. Everything you need is there. If you have trouble putting it together from the JavaDoc don't feel bad. Google for "httpurlconnection tutorial" and I bet you hit something good. In fact, google for "java anytopic tutorial" almost always hits gold.

If you get some code going and have trouble, jump up to the Sockets and Internet Protocols forum and post what you have.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Steve Buck
Ranch Hand

Joined: Nov 23, 2004
Posts: 45
Thanks Stan James. I'll look into those more (I've used URL lightly with JAX-RPC and whatnot).

cheers
 
Consider Paul's rocket mass heater.
 
subject: Binding a input character stream to an HTML page transmitted over HTTP