org.umber.catalan.forge
Class XmlStyleConverter

java.lang.Object
  extended byorg.umber.catalan.forge.XmlStyleConverter

public class XmlStyleConverter
extends java.lang.Object

Demonstration of queues that converts XML from the InputStream into the requested naming style and writes it to the OutputStream.

Author:
jsheets

Constructor Summary
XmlStyleConverter(java.io.Reader input, java.io.Writer output, PropertyName.PropertyStyle style)
           
 
Method Summary
 void run()
          Reads all XML from input and rewrites it to output using new naming style.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlStyleConverter

public XmlStyleConverter(java.io.Reader input,
                         java.io.Writer output,
                         PropertyName.PropertyStyle style)
Method Detail

run

public void run()
         throws CatalanQueueException,
                CatalanCommandException
Reads all XML from input and rewrites it to output using new naming style. Attempts to write all garbage data straight through. In theory, picks XML selectively from the input. Thus, it should be able to edit XML embedded inside a larger text document.

Throws:
CatalanQueueException - if fatal queue read/write errors occur
CatalanCommandException - if internal parsing errors occur