Package org.faceless.publisher.output
Interface ReportOutput
- All Superinterfaces:
org.faceless.publisher.type.EnvSource
,org.faceless.publisher.output.ReportCanvasContext
- All Known Implementing Classes:
PDFReportOutput
,SVGReportOutput
public interface ReportOutput
extends org.faceless.publisher.output.ReportCanvasContext, org.faceless.publisher.type.EnvSource
A ReportOutput is used to render a Report to some sort of Output.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDataList
(String id, List<String> options) List<? extends Term>
getEnvironment
(String name) default Boolean
getEnvironmentAsBoolean
(String name, Boolean dflt) default org.faceless.publisher.type.CSSColor
getEnvironmentAsColor
(String name, org.faceless.publisher.type.CSSColor dflt) default Float
getEnvironmentAsFloat
(String name, Float dflt) default Float
getEnvironmentAsFloatOrInf
(String name, Float dflt) default Integer
getEnvironmentAsInt
(String name, Integer dflt) default org.faceless.publisher.type.Length
getEnvironmentAsLength
(String name, org.faceless.publisher.type.Length dflt) default Float
getEnvironmentAsResolution
(String name, Float dflt) default Float
getEnvironmentAsResolutionOrInf
(String name, Float dflt) default String
getEnvironmentAsString
(String name, String dflt) getEnvironmentAsStringList
(String name, List<String> dflt) default Float
getEnvironmentAsTime
(String name, Float dflt) default URL2
getEnvironmentAsURL
(String name, URL2 dflt) 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. -
getEnvironment
-
getEnvironmentAsString
-
getEnvironmentAsStringList
-
getEnvironmentAsInt
-
getEnvironmentAsURL
-
getEnvironmentAsBoolean
-
getEnvironmentAsFloat
-
getEnvironmentAsFloatOrInf
-
getEnvironmentAsLength
default org.faceless.publisher.type.Length getEnvironmentAsLength(String name, org.faceless.publisher.type.Length dflt) -
getEnvironmentAsResolution
-
getEnvironmentAsResolutionOrInf
-
getEnvironmentAsTime
-
getEnvironmentAsColor
default org.faceless.publisher.type.CSSColor getEnvironmentAsColor(String name, org.faceless.publisher.type.CSSColor dflt)
-