Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JDOM User »

[jdom-interest] Subclassing XMLOuputter

Bradley S. Huffman

2004-02-18

Replies:

Is anyone overriding any of the following methods in XMLOutputter

 printContentRange
 printTextRange
 printString

Or should they be made private? I think they should be private since there
is a better way to implement the function of printContentRange and
printTextRange. Hell last night I found yet another bug in printTextRange.

printString is a exact duplicate of printText so the one occurance can be
replaced with printText.

What about escapeAttributeEntities and escapeElementEntities? The ability to
escape unprintable chars is provided with EscapeStrategy. Making them private
would only limit the format of escape characters.

Also what about the format instances userFormat, preserveFormat, and
currentFormat. I'm thinking userFormat should be private. preserveFormat should
be static final and either private or protected. currentFormat can remain
protected for subclass use.

Any thoughts?

Brad
_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.