logo       

Re: Passing null to setFooHandler: msg#00078

Subject: Re: Passing null to setFooHandler

sax-devel-admin@xxxxxxxxxxxxxxxxxxxxx wrote on 04/25/2004 02:21:11 PM:

>
>
> > I suggest we add verbiage like the following to each of the setter
> > methods in XMLReader:
> >
> > An application may pass null to this method to remove the currently
> > registered ContentHandler. In this case, the parser must stop using the
> > old handler immediately. A NullPointerException is not thrown.
>
> Make sense to. Is that really not documented?


The javadoc for the setFooHandler methods currently says: "Applications may register a new or different handler in the middle of a parse and the SAX parser must begin using the new handler immediately." Does more really need to be said here? The NullPointerException condition was removed in SAX 2.0.1.

> Karl
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
> For a limited time only, get FREE Ground shipping on all orders of $35
> or more. Hurry up and shop folks, this offer expires April 30th!
> http://www.thinkgeek.com/freeshipping/?cpg=12297
> _______________________________________________
> List: sax-devel, sax-devel@xxxxxxxxxxxxxxxxxxxxx
> See:  http://www.saxproject.org/
> https://lists.sourceforge.net/lists/listinfo/sax-devel


Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@xxxxxxxxxx

E-mail: mrglavas@xxxxxxxxxx
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
science.linguis...    culture.sf.lite...    video.mplayer.c...    yellowdog.gener...    ietf.rfc822/199...    emacs.help/2002...    redhat.release....    kernel.speakup/...    java.openejb.de...    debian.devel.gt...    xfree86.newbie/...    bug-tracking.ma...    pam/2003-05/msg...    games.devel.ope...    user-groups.lin...    music.pancham/2...    network.mq.deve...    web.html.genera...    arklinux.bugs/2...    linux.ecasound/...    qnx.openqnx.dev...    org.user-groups...    file-systems.sf...    trustix.contrib...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe