A report builder incrementally writes the contents of a report to its destination.
| Constructor and description |
|---|
ReportBuilder
(java.io.File pDestination)Create a new ReportBuilder. |
| Type | Name and description |
|---|---|
void |
close()Close the builder's underlying destination. |
void |
copy(java.io.File pFile)Copy the contents of a file to this builder's destination. |
void |
copy(java.lang.String pResource)Copy the contents of a classpath resource to this builder's destination. |
java.io.File |
getDestination()Get the file this builder is creating. |
void |
transform(java.io.File pXmlFile, java.io.File pXslFile, java.util.Map<java.lang.String, java.lang.Object> pParameters = null)Transform an XML file by applying the style sheet from an XSL file and write the result to this builder's destination. |
void |
transform(java.io.File pXmlFile, java.lang.String pXslResource, java.util.Map<java.lang.String, java.lang.Object> pParameters = null)Transform an XML file by applying the style sheet from an XSL resource and write the result to this builder's destination. |
void |
write(java.lang.String pString)Write a string to this builder's destination. |
void |
write(java.lang.String pString, java.nio.charset.Charset pCharset)Write a string to this builder's destination. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Create a new ReportBuilder.
pDestination - The file to write the report to.Close the builder's underlying destination. Future calls to other methods on this instance will fail.
Copy the contents of a file to this builder's destination.
pFile - The file to copy.Copy the contents of a classpath resource to this builder's destination. The resource will be accessed through the class loader of this builder.
pResource - The name of the resource to copy.Get the file this builder is creating.
Transform an XML file by applying the style sheet from an XSL file and write the result to this builder's destination.
pXmlFile - The XML file to transform.pXslFile - The XSL file with the style sheet to apply.pParameters - Any XSL parameters to pass to the transformation.Transform an XML file by applying the style sheet from an XSL resource and write the result to this builder's destination. The resource will be accessed through the class loader of this builder.
pXmlFile - The XML file to transform.pXslResource - The XSL resource with the style sheet to apply.pParameters - Any XSL parameters to pass to the transformation.Write a string to this builder's destination.
pString - The string to write.Write a string to this builder's destination.
pString - The string to write.pCharset - The charset to encode the string with.