[jdom-interest] Failing early on maxLength violations

J. McConnell jdotmc at gmail.com
Wed Dec 14 12:05:28 PST 2005


On 12/14/05, Tatu Saloranta <cowtowncoder at yahoo.com> wrote:
>
> On the other hand, most SAX parsers do send text
> content in chunks, so you could override
> SAXHandler#characters() method, and do checks when it
> tries to append characters in the StringBuffer()
> object.

If I implement a XMLFilter that overrides the characters() method, how
can I determine the current element's type and maxLength restrictions
from within that method?  I have been searching for filter examples
that access that information, but haven't been able to find any.

Thanks,

- J.



More information about the jdom-interest mailing list