at.gv.egiz.pdfas
Class PdfAsFactory
java.lang.Object
at.gv.egiz.pdfas.PdfAsFactory
- public class PdfAsFactory
- extends Object
Main factory for creating a PDF-AS API Instance (PdfAs Interface).
- Author:
- wprinz
- See Also:
PdfAs
|
Method Summary |
static PdfAs |
createPdfAs()
Creates a PDF-AS API instance assuming that the configuration is located within the user's
home directory. |
static PdfAs |
createPdfAs(File workDirectory)
Creates a PDF-AS API instance for the given work directory. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PdfAsFactory
public PdfAsFactory()
createPdfAs
public static PdfAs createPdfAs(File workDirectory)
throws PdfAsException
- Creates a PDF-AS API instance for the given work directory.
- Parameters:
workDirectory - The work directory. If null the configuration is assumed to be located
within the user's home directory.
- Returns:
- Returns an instance of the PDF-AS API.
- Throws:
IllegalArgumentException - Thrown, if the workDirectory doesn't exist.
PdfAsException - Thrown, if the work directory does not meet its requirements, or
if the config file is invalid.- See Also:
PdfAS#USERHOME_CONFIG_FOLDER
createPdfAs
public static PdfAs createPdfAs()
throws PdfAsException
- Creates a PDF-AS API instance assuming that the configuration is located within the user's
home directory.
- Returns:
- Returns an instance of the PDF-AS API.
- Throws:
IllegalArgumentException - Thrown, if the work directory doesn't exist within the user's home directory.
PdfAsException - Thrown, if the work directory does not meet its requirements, or
if the config file is invalid.- See Also:
PdfAS#USERHOME_CONFIG_FOLDER
Copyright © 2006-2010. All Rights Reserved.