[jdom-interest] Question on deprecated XMLOutputter method

Jason Hunter jhunter at acm.org
Tue Jul 31 16:07:18 PDT 2001


> The documentation indicates that a "stacked FilterOutputStream" 
> is the preferred solution.  Could someone give me some insights on 
> how this might be done, or point me to some resources that would 
> help me?  I have included part of my code below to show what I am 
> doing.  Thanks in advance.

The thought is you can write a FilterOutputStream that adds an indent to
each line as it's output, then output to the filter stream wrapped
around the true stream.  LineNumberInputStream is a little bit similar,
in that on reads it counts lines.

-jh-



More information about the jdom-interest mailing list