Schnittstelle ReportGenerator

Alle bekannten Implementierungsklassen:
Engine, EngineBundle

public interface ReportGenerator
Helper interface to use the same code for Engine and EngineBundle
Seit:
14.1
  • Methodendetails

    • setDocumentOutput

      void setDocumentOutput(DocumentOutput documentOutput)
      Set the output location for the rendered data. By default the memory (heap) is used. It is also possible to store the data into the report cache or stream it directly to an OutputStream. This must be set before call of execute().
      Parameter:
      documentOutput - The location for the data. This can be DocumentOutputStream or CachedOutput.
      Seit:
      16.2
    • setUserProperties

      void setUserProperties(Properties props) throws ReportException
      Parameter:
      props - The data to be set in a Properties object.
      Löst aus:
      ReportException - if Engine is not initialized or finished.
      Seit:
      14.1
    • setClientLocale

      void setClientLocale(@Nonnull Locale locale) throws ReportException
      Parameter:
      locale - The locale to be used by the client
      Löst aus:
      ReportException - if Engine is not initialized or finished.
      Seit:
      14.1
    • stopAfterPage

      void stopAfterPage(int maxPageNo)
      See Engine.stopAfterPage(int) for details.
      Parameter:
      maxPageNo - The last page that should be rendered. 0 means "unlimited".
      Seit:
      14.1
    • setPrompt

      void setPrompt(String name, String prompt) throws ReportException
      Parameter:
      name - the name of the parameter field
      prompt - value for parameter field as String
      Löst aus:
      ReportException - if Engine is not initialized or finished.
      Seit:
      14.1
    • getPromptField

      PromptField getPromptField(String name) throws ReportException
      Parameter:
      name - name of the prompt to fetch
      Gibt zurück:
      PromptField by the given name in this Report, or null if none exists
      Löst aus:
      ReportException - if Engine is not initialized or finished.
      Seit:
      14.1
    • setPrompt

      void setPrompt(String prompt, int i) throws ReportException
      Parameter:
      prompt - value for parameter field i
      i - index in the parameter list
      Löst aus:
      ReportException - if Engine is not initialized or finished.
      Seit:
      14.1
    • execute

      void execute() throws ReportException
      See Engine.execute() for details.
      Löst aus:
      ReportException - if Engine is not initialized or finished.
      Seit:
      14.1
      Siehe auch:
    • getPageCount

      int getPageCount() throws ReportException
      See Engine.getPageCount() for details.
      Gibt zurück:
      number of pages or chunks
      Löst aus:
      ReportException - If rendering the report encounters a problem
      Seit:
      14.1
    • getPageData

      byte[] getPageData(int page) throws ReportException
      See Engine.getPageData(int) for details.
      Parameter:
      page - The number of the page. The first page is 1, the second is 2, ... . If the page number is bigger than the page count then null will be returned.
      Gibt zurück:
      the binary data for the Java Viewer or the bytes of the exported file (page).
      Löst aus:
      IllegalArgumentException - if the page number is zero or negative.
      ReportException - If rendering the page encounters a problem
      Seit:
      14.1
    • getStatistics

      @Nonnull EngineStatistics getStatistics()
      See Engine.getStatistics() for details.
      Gibt zurück:
      the statistic
      Seit:
      14.1
    • stop

      void stop(String message)
      See Engine.stop(String) for details.
      Parameter:
      message - a message for the debug log.
      Seit:
      14.1