Package net.sourceforge.pmd.cpd
Class XMLRenderer
java.lang.Object
net.sourceforge.pmd.cpd.XMLRenderer
- All Implemented Interfaces:
CPDReportRenderer
- Author:
- Philippe T'Seyen - original implementation, Romain Pelisse - javax.xml implementation
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a XML Renderer with the default (platform dependent) encoding.XMLRenderer(String encoding) Creates a XML Renderer with a specific output encoding. -
Method Summary
Modifier and TypeMethodDescriptionvoidWrite out the contents of the report to the given writer.voidsetEncoding(String encoding) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.sourceforge.pmd.cpd.CPDReportRenderer
renderToString
-
Constructor Details
-
XMLRenderer
public XMLRenderer()Creates a XML Renderer with the default (platform dependent) encoding. -
XMLRenderer
Creates a XML Renderer with a specific output encoding.- Parameters:
encoding- the encoding to use or null. If null, default (platform dependent) encoding is used.
-
-
Method Details
-
setEncoding
-
getEncoding
-
render
Description copied from interface:CPDReportRendererWrite out the contents of the report to the given writer.- Specified by:
renderin interfaceCPDReportRenderer- Parameters:
report- The report to writewriter- A writer for the report file- Throws:
IOException- If the writer throws
-