Re: input stream 101
- From: "hawat.thufir@xxxxxxxxx" <hawat.thufir@xxxxxxxxx>
- Date: 1 Aug 2005 11:49:34 -0700
blmblm@xxxxxxxxxxxxx wrote:
....
> Well, the Web page you cited earlier
>
> http://sourceforge.net/docman/display_doc.php?docid=1298&group_id=13153
>
> gives some code I think you could easily adapt -- the code in method
> run() seems like it's pretty much what you want to do. If you
> look at it, the variable "url" is actually a String, which is what
> you want to start with, right? the URL of some HTML to "tidy"?
> and then it writes its output to a file, which is okay with you,
> right? So I think you're almost there; you just need to figure
> out how you want to package this code. Putting it in a main(),
> with the URL and the output file name as command-line parameters,
> would be one way. If you want something with a GUI for those
> two parameters, someone else can maybe help ....
>
> --
> | B. L. Massingill
> | ObDisclaimer: I don't speak for my employers; they return the favor.
No GUI, just input/output :)
However, yes, a GUI is something I'm looking into *down the road* but
getting this to work with the url String hardcoded in is hard enough ;)
I don't know yet how to "package this code," but I do have some general
ideas:
I don't want to deal with an instance of Tidy
I do want to create my own interface, BasicTidy
I do want ControlTidy to be all static methods
I do want ControlTidy to call methods on an object which is of type
BasicTidy
I don't know what BasicTidy really needs
I don't know what kind of objects can be of type BasicTidy
(I'm not sure how to say that last one. There's the type (interface)
of an object, and then its type (instance of).)
thanks,
-Thufir
.
- Follow-Ups:
- Re: input stream 101
- From: blmblm
- Exception in "Thread-0", NoClassDefFoundError: org/w3c/tidy/Tidy
- From: hawat.thufir@xxxxxxxxx
- Re: input stream 101
- References:
- input stream 101
- From: hawat.thufir@xxxxxxxxx
- Re: input stream 101
- From: hawat.thufir@xxxxxxxxx
- Re: input stream 101
- From: blmblm
- Re: input stream 101
- From: hawat.thufir@xxxxxxxxx
- Re: input stream 101
- From: blmblm
- input stream 101
- Prev by Date: Re: input stream 101
- Next by Date: Re: Must be simple - window does not redraw when uncovered
- Previous by thread: Re: input stream 101
- Next by thread: Exception in "Thread-0", NoClassDefFoundError: org/w3c/tidy/Tidy
- Index(es):
Relevant Pages
|