Thread: RE: [Htmlparser-developer] HTMLParserFeedback issues..
Brought to you by:
derrickoswald
From: <dha...@or...> - 2002-10-16 07:28:43
Attachments:
BDY.RTF
|
Hi Somik, =A0 I tried compiling my program with the latest integration build. However it failed. I realised that the API signatures had been changed for HTMLParser. I think you should use overlaoded=A0constructors so that backward compatibility is not affected. I think u must be already knowing about this.=20 =A0 Also is it possible for someone to explain what is the purpose of the new class HTMLParserFeedback? Regards,=20 Dhaval Udani=20 Senior Analyst=20 M-Line, QPEG=20 OrbiTech Solutions Ltd.=20 +91-22-8290019 Extn. 1457=20 =A0 -----Original Message----- From: somik [mailto:so...@ya...] Sent: Wednesday, October 16, 2002 12:01 PM To: htmlparser-developer Cc: somik Subject: [Htmlparser-developer] HTMLParserFeedback issues.. =20 =20 =20 Hi Claude, =A0=A0=A0 I've just finished refactoring HTMLTag, so that I can incorp= orate feedback more easily.=20 =A0=A0=A0 As I am adding feedback - I have a question - when should I = use feedback.error() as opposed to throwing an HTMLParserException ? =A0 Regards, Somik =20 |
From: <dha...@or...> - 2002-10-16 08:32:52
Attachments:
BDY.RTF
|
Hi Somik, I do think that I have the latest integration build release of October 2. The javadocs as well as the source code both have constructors with HTMLParserFeedback as one of the parameters. Regards, Dhaval Udani Senior Analyst M-Line, QPEG OrbiTech Solutions Ltd. +91-22-8290019 Extn. 1457 -----Original Message----- From: somik [mailto:so...@ya...] Sent: Wednesday, October 16, 2002 1:55 PM To: htmlparser-developer Cc: somik Subject: Re: [Htmlparser-developer] HTMLParserFeedback issues.. Dhaval wrote : "I tried compiling my program with the latest integration build. However it failed. I realised that the API signatures had been changed for HTMLParser. I think you should use overlaoded constructors so that backward compatibility is not affected. I think u must be already knowing about this. " I do hope you have the latest integration build. That does have overloaded constructors. "Also is it possible for someone to explain what is the purpose of the new class HTMLParserFeedback?" It is to enable you to implement logging or interactivity in your application - you get notified when there are warnings or info messages. Have u used log4j or the JDK 1.4 logging api ? The concept is similar to that. Regards, Somik ------------------------------------------------------- This sf.net email is sponsored by: viaVerio will pay you up to $1,000 for every account that you consolidate with us. http://ad.doubleclick.net/clk;4749864;7604308;v? http://www.viaverio.com/consolidator/osdn.cfm _______________________________________________ Htmlparser-developer mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlparser-developer |
From: Somik R. <so...@ya...> - 2002-10-16 10:38:59
|
Dhaval wrote : > I do think that I have the latest integration build release of October > 2. The javadocs as well as the source code both have constructors with > HTMLParserFeedback as one of the parameters. Thats right, but HTMLParser.java also has : public HTMLParser(String resourceLocn) throws HTMLParserException This is present to maintain backward compatibility. Regards, Somik |
From: <dha...@or...> - 2002-10-16 10:47:55
Attachments:
BDY.RTF
|
But how will I use resourceLocn if I was using a constructor which used only teh HTMLReader object earlier. Regards, Dhaval Udani Senior Analyst M-Line, QPEG OrbiTech Solutions Ltd. +91-22-8290019 Extn. 1457 -----Original Message----- From: somik [mailto:so...@ya...] Sent: Wednesday, October 16, 2002 4:09 PM To: htmlparser-developer Cc: somik Subject: Re: [Htmlparser-developer] HTMLParserFeedback issues.. Dhaval wrote : > I do think that I have the latest integration build release of October > 2. The javadocs as well as the source code both have constructors with > HTMLParserFeedback as one of the parameters. Thats right, but HTMLParser.java also has : public HTMLParser(String resourceLocn) throws HTMLParserException This is present to maintain backward compatibility. Regards, Somik ------------------------------------------------------- This sf.net email is sponsored by: viaVerio will pay you up to $1,000 for every account that you consolidate with us. http://ad.doubleclick.net/clk;4749864;7604308;v? http://www.viaverio.com/consolidator/osdn.cfm _______________________________________________ Htmlparser-developer mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlparser-developer |
From: Somik R. <so...@ya...> - 2002-10-16 11:02:12
|
> But how will I use resourceLocn if I was using a constructor which used > only teh HTMLReader object earlier. You're right again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WZ0IHVucmVwb3J0ZWQuDQoNCgktLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLSANCglGcm9t OiBTb21payBSYWhhIFttYWlsdG86c29taWtAeWFob28uY29tXSANCglTZW50OiBUdWUgMTAvMTUv MjAwMiAxMTozMCBQTSANCglUbzogSFRNTFBhcnNlciBEZXZlbG9wZXIgTGlzdCANCglDYzogDQoJ U3ViamVjdDogW0h0bWxwYXJzZXItZGV2ZWxvcGVyXSBIVE1MUGFyc2VyRmVlZGJhY2sgaXNzdWVz Li4NCgkNCgkNCglIaSBDbGF1ZGUsDQoJICAgIEkndmUganVzdCBmaW5pc2hlZCByZWZhY3Rvcmlu ZyBIVE1MVGFnLCBzbyB0aGF0IEkgY2FuIGluY29ycG9yYXRlIGZlZWRiYWNrIG1vcmUgZWFzaWx5 LiANCgkgICAgQXMgSSBhbSBhZGRpbmcgZmVlZGJhY2sgLSBJIGhhdmUgYSBxdWVzdGlvbiAtIHdo ZW4gc2hvdWxkIEkgdXNlIGZlZWRiYWNrLmVycm9yKCkgYXMgb3Bwb3NlZCB0byB0aHJvd2luZyBh biBIVE1MUGFyc2VyRXhjZXB0aW9uID8NCgkgDQoJUmVnYXJkcywNCglTb21paw0KDQo= |
From: Somik R. <so...@ya...> - 2002-10-16 16:50:34
|
--- Claude Duguay <CD...@ar...> wrote: > Some errors are non-fatal. In our (Arcessa's) > application, for example, a parser error means that > the document could not be handled and needs to be > logged, but the application moves on to the next > document without stopping. Within the parser, the > question is more granular. There may not be any case > where you don't want to abort when you have an > error. You can still report the error AND throw an > exception. Think of feedback as a mechanism for > logging that may be ignored or redirected at the > user's discression. It's a hook that lets developers > redirect the output so that it doesn't go to the > console. Although the default feedback goes to the > console, developers are not tied to that behavior > and you have a way of making sure nothing is left > unreported. I get it. The next question though is - what sort of performance hit are we looking at ? There are creation of strings - and even if we replace the default feedback with another that does not display- there would still be an overhead, right ? Or can intelligent compilers figure out calls to empty methods and hence do optimizations there ? Regards, Somik __________________________________________________ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos & More http://faith.yahoo.com |
From: Claude D. <CD...@ar...> - 2002-10-16 18:47:48
|
VGhlIElCTSB0ZWFtIHRoYXQgd3JvdGUgdGhlIG9yaWdpbmFsIExvZzRKIHNob3dlZCB0aGF0IGEg Y2FsbCB0byBudWxsIG1ldGhvZHMgd2FzIHNvIHNtYWxsIHRoYXQgaXQgd2Fzbid0IHdvcnRoIHdv cnJ5aW5nIGFib3V0LiBTdGlsbCwgeW91IGFyZSBjb3JyZWN0IHRoYXQgdGhlcmUgaXMgc29tZSBv dmVyaGVhZCBhbmQgdGh1cyB5b3Ugc2hvdWxkIHVzZSBmZWVkYmFjayBzcGFyaW5nbHkuIFN0cmlu ZyBsaXRlcmFscyBkb24ndCBoYXZlIHRvIGJlIGNvbnN0cnVjdGVkLiBPbmx5IHJlcG9ydCBrZXkg ZXZlbnRzLiBWZXJib3NlIGluIGEgaGlnaC1wZXJmb3JtYW5jZSBzeXN0ZW0gaXMgbm90IGEgZ29v ZCBpZGVhLiBPZiBjb3Vyc2UsIGRlYnVnIG1lc3NhZ2VzIG1heSBiZSBtb3JlIHZlcmJvc2UgYnV0 IHRoZXkgbmVlZCB0byBiZSB0dXJuZWQgb2ZmIHVuZGVyIG5vcm1hbCBjaXJjdW1zdGFuY2VzLg0K IA0KLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0gDQpGcm9tOiBTb21payBSYWhhIFttYWlsdG86 c29taWtAeWFob28uY29tXSANClNlbnQ6IFdlZCAxMC8xNi8yMDAyIDk6NTAgQU0gDQpUbzogaHRt bHBhcnNlci1kZXZlbG9wZXJAbGlzdHMuc291cmNlZm9yZ2UubmV0IA0KQ2M6IA0KU3ViamVjdDog UkU6IFtIdG1scGFyc2VyLWRldmVsb3Blcl0gSFRNTFBhcnNlckZlZWRiYWNrIGlzc3Vlcy4uDQoN Cg0KDQoNCgktLS0gQ2xhdWRlIER1Z3Vhe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8vYWQuZG91YmxlY2xpY2submV0L2Nsazs0NzQ5ODY0Ozc2MDQzMDg7dj8NCglodHRw Oi8vd3d3LnZpYXZlcmlvLmNvbS9jb25zb2xpZGF0b3Ivb3Nkbi5jZm0NCglfX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXw0KCUh0bWxwYXJzZXItZGV2ZWxvcGVy IG1haWxpbmcgbGlzdA0KCUh0bWxwYXJzZXItZGV2ZWxvcGVyQGxpc3RzLnNvdXJjZWZvcmdlLm5l dA0KCWh0dHBzOi8vbGlzdHMuc291cmNlZm9yZ2UubmV0L2xpc3RzL2xpc3RpbmZvL2h0bWxwYXJz ZXItZGV2ZWxvcGVyDQoJDQoNCg== |
From: Somik R. <so...@ya...> - 2002-10-16 08:24:04
|
Dhaval wrote : "I tried compiling my program with the latest integration build. However it failed. I realised that the API signatures had been changed for HTMLParser. I think you should use overlaoded constructors so that backward compatibility is not affected. I think u must be already knowing about this. " I do hope you have the latest integration build. That does have overloaded constructors. "Also is it possible for someone to explain what is the purpose of the new class HTMLParserFeedback?" It is to enable you to implement logging or interactivity in your application - you get notified when there are warnings or info messages. Have u used log4j or the JDK 1.4 logging api ? The concept is similar to that. Regards, Somik |