|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.beandoc.output.EchoTransformer
public class EchoTransformer
Transformer that simply echoes the XML representation of the decorated DOM. Useful for testing or debugging. Not included in the default context file for the beandoc tool.
This transformer can be configured to write the XML to any Writer
object
you like by setting the 'writer' bean property. Defaults to System.out
(wrapped by an OutputStreamWriter
).
Constructor Summary | |
---|---|
EchoTransformer()
|
Method Summary | |
---|---|
void |
setPrettyPrint(boolean prettyPrint)
The default processor removes all comments and whitespcace by default for efficiency. |
void |
setWriter(Writer writer)
Set the Writer that you wish output to be directed to. |
void |
transform(org.jdom.Document[] contextDocuments,
File outputDir)
Simply echoes a textual representation of the decorated JDOM documents to the configured Writer (or System.out if no other was specified). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EchoTransformer()
Method Detail |
---|
public void transform(org.jdom.Document[] contextDocuments, File outputDir)
transform
in interface Transformer
contextDocuments
- an array of JDOM Document objectsoutputDir
- the directory to place any output inTransformer.transform(org.jdom.Document[], File)
public void setWriter(Writer writer)
writer
- which must not be null (throws IllegalArgumentException)public void setPrettyPrint(boolean prettyPrint)
prettyPrint
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |