Package org.faceless.publisher.output
Interface ReportOutput
- All Superinterfaces:
org.faceless.publisher.output.ReportCanvasContext
- All Known Implementing Classes:
PDFReportOutput
,SVGReportOutput
public interface ReportOutput
extends org.faceless.publisher.output.ReportCanvasContext
A ReportOutput is used to render a Report to some sort of Output.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDataList
(String id, List<String> options) Return the type of object that would be written bywrite(java.io.OutputStream)
, or if that method doesn't apply, the type of Media generated by this ReportOutput.boolean
Return true if the current page is blankvoid
markPage()
Record that this page is not blankvoid
write
(OutputStream out) Write the object generated by this ReportOutput to the specified OutpuStream.
-
Method Details
-
isPageBlank
boolean isPageBlank()Return true if the current page is blank -
markPage
void markPage()Record that this page is not blank- Specified by:
markPage
in interfaceorg.faceless.publisher.output.ReportCanvasContext
-
addDataList
-
write
Write the object generated by this ReportOutput to the specified OutpuStream. The exact object written is instance dependent, and if no single file is appropriate this method may throw anUnsupportedOperationException
.- Throws:
IOException
- if generated when writing.UnsupportedOperatonException
- if this type of Output does not write to a single file.IllegalStateExeption
- if called before the render has sucessfully completed
-
getMediaType
MediaType getMediaType()Return the type of object that would be written bywrite(java.io.OutputStream)
, or if that method doesn't apply, the type of Media generated by this ReportOutput.
-