Re: [Htmlparser-developer] Extracting a single purpose library
Brought to you by:
derrickoswald
From: Derrick O. <Der...@Ro...> - 2005-04-05 22:26:17
|
Martin, HTML Parser has a similar class as well... org.htmlparser.util.Translate.java: http://cvs.sourceforge.net/viewcvs.py/htmlparser/htmlparser/src/org/htmlparser/util/Translate.java?view=markup This file was arrived at via a similar mechanism to your own. It's not stand-alone, relying on a sort utility, to avoid two copies of each reference in the class, and two reference classes, for a total of about 5 classes. There was a patch provided by *Karsten Pawlik* that loaded the table from a resource: http://sourceforge.net/tracker/index.php?func=detail&aid=897297&group_id=24399&atid=381401 but this was never integrated. This could be broken out into a separate jar. Is that what you are suggesting? Derrick Martin Kersten wrote: > Dear Html-Parser developers, > > my name is Martin Kersten and I am looking for a library doing HTML > related conversions. Originally I started to refactor the HtmlUtils > class of the Spring framework. But thinking about it, it would be best > if such a capability (decode/encode strings from / to Html) would be > provided by a special and tiny library. Such a library would be a > relief, I guess. Also I wouldn't like to invent the wheel, twice... . > > Also by my own refactoring affords, I ended with a special class > encapuslating the named entity references and load it from file > (I used the http://www.w3.org/TR/REC-html40/sgml/entities.html files). > I don't know if this efford is worth it but from an OOP stand point it > looks nice :-). > > Anyways, I would be happy if such a highly focused library would > be out there. > So what do you think? Any chance that such a library can be created? > > > Cheers, > > Martin (Kersten) > > PS: I am not a Spring developer, I am just a Spring user who cares... > . :-) > |