org.foray.app
Class PrintStarter

java.lang.Object
  extended by org.foray.app.Starter
      extended by org.foray.app.CommandLineStarter
          extended by org.foray.app.PrintStarter

public class PrintStarter
extends CommandLineStarter

This class prints a xsl-fo document without interaction. At the moment java has not the possibility to configure the printer and it's options without interaction (30.03.2000). This class allows to print a set of pages (from-to), even/odd pages and many copies. - Print from page xxx: property name - start, value int - Print to page xxx: property name - end, value int - Print even/odd pages: property name - even, value boolean - Print xxx copies: property name - copies, value int


Constructor Summary
PrintStarter(SessionConfig sessionConfig, OutputConfig renderConfig, CommandLineOptions options)
          Constructor.
 
Method Summary
 void run()
          Runs the process.
 
Methods inherited from class org.foray.app.CommandLineStarter
getCommandLineOptions, getInputSource
 
Methods inherited from class org.foray.app.Starter
getLogger, getOptions, getOutputConfig
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintStarter

public PrintStarter(SessionConfig sessionConfig,
                    OutputConfig renderConfig,
                    CommandLineOptions options)
             throws FOrayException
Constructor.

Parameters:
sessionConfig - The session configuration.
renderConfig - The output configuration.
options - The options.
Throws:
FOrayException - For errors during construction.
Method Detail

run

public void run()
         throws FOrayException
Description copied from class: Starter
Runs the process.

Overrides:
run in class CommandLineStarter
Throws:
FOrayException - For errors during processing.


Copyright © 2017. All rights reserved.