Re: input stream 101



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

.



Relevant Pages

  • Re: input stream 101
    ... >I do want to create my own interface, BasicTidy ... >I do want ControlTidy to call methods on an object which is of type ... Why do you want this interface BasicTidy? ... if class ControlTidy extends Tidy and implements Runnable ...
    (comp.lang.java.help)
  • Re: input stream 101
    ... Why do you want this interface BasicTidy? ... >BasicTidy implements Runnable and Test16 implements BasicTidy. ... if class ControlTidy extends Tidy and implements Runnable ...
    (comp.lang.java.help)
  • Re: input stream 101
    ... Why do you want this interface BasicTidy? ... if class ControlTidy extends Tidy and implements Runnable ... [thufir@arrakis tidyXhtml]$ date ...
    (comp.lang.java.help)
  • Re: input stream 101
    ... the reason for having a separate interface definition is to have ... except that Test16 also has a constructor. ... Why not just have a class BasicTidy? ... All the HTML files are the same pattern. ...
    (comp.lang.java.help)
  • Re: input stream 101
    ... I have a BasicTidy interface to throw into the mix. ... package atreides.tidyXhtml; ... 12 public class Test16 implements Runnable, ... public class ControlTidy{ ...
    (comp.lang.java.help)