public final class Applications extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Applications.Builder |
Modifier and Type | Field and Description |
---|---|
static String |
APP_HOME_PROPERTY |
static String |
DEFAULT_CONFIG_ROOT_NAME |
static String |
UPDATE_LATEST_VERSION |
static String |
UPDATE_OLD_VERSION |
static String |
UPDATE_SERVICE_NOT_AVAILABLE |
static String |
UPDATE_URI |
Modifier and Type | Method and Description |
---|---|
static void |
checkArgNotNull(Object arg,
String argName) |
static ConfigManager |
createAppConfigManager()
Shortcut method to create a configuration in the application install
configuration directory.
|
static Applications.Builder |
createConfigBuilder(VeraAppConfig base) |
static ConfigManager |
createConfigManager(File root) |
static ConfigManager |
createTmpConfigManager()
Shortcut method to create a configuration in the temp directory.
|
static VeraAppConfig |
defaultConfig() |
static Applications.Builder |
defaultConfigBuilder() |
static org.verapdf.apps.VeraAppConfigImpl |
fromXml(InputStream toConvert) |
static org.verapdf.apps.VeraAppConfigImpl |
fromXml(Reader toConvert) |
static org.verapdf.apps.VeraAppConfigImpl |
fromXml(String toConvert) |
static ReleaseDetails |
getAppDetails() |
static SoftwareUpdater |
softwareUpdater() |
static String |
toXml(VeraAppConfig toConvert,
Boolean prettyXml) |
static void |
toXml(VeraAppConfig toConvert,
OutputStream stream,
Boolean prettyXml) |
static void |
toXml(VeraAppConfig toConvert,
Writer writer,
Boolean prettyXml) |
public static final String APP_HOME_PROPERTY
public static final String DEFAULT_CONFIG_ROOT_NAME
public static final String UPDATE_SERVICE_NOT_AVAILABLE
public static final String UPDATE_LATEST_VERSION
public static final String UPDATE_OLD_VERSION
public static final String UPDATE_URI
public static ReleaseDetails getAppDetails()
public static ConfigManager createConfigManager(File root)
root
- the root directory for the configuration, should contain the
veraPDF configuration files, if not default ones are created.ConfigManager
instance populated using the
configuration files at root.public static ConfigManager createAppConfigManager()
ConfigManager
instance populated using the
configuration files in the application config directory.public static ConfigManager createTmpConfigManager()
ConfigManager
instance populated using the
configuration files in the temp directory.public static VeraAppConfig defaultConfig()
public static Applications.Builder defaultConfigBuilder()
public static Applications.Builder createConfigBuilder(VeraAppConfig base)
public static String toXml(VeraAppConfig toConvert, Boolean prettyXml) throws JAXBException, IOException
JAXBException
IOException
public static void toXml(VeraAppConfig toConvert, OutputStream stream, Boolean prettyXml) throws JAXBException
JAXBException
public static org.verapdf.apps.VeraAppConfigImpl fromXml(InputStream toConvert) throws JAXBException
JAXBException
public static void toXml(VeraAppConfig toConvert, Writer writer, Boolean prettyXml) throws JAXBException
JAXBException
public static org.verapdf.apps.VeraAppConfigImpl fromXml(Reader toConvert) throws JAXBException
JAXBException
public static org.verapdf.apps.VeraAppConfigImpl fromXml(String toConvert) throws JAXBException
JAXBException
public static SoftwareUpdater softwareUpdater()
Copyright © 2015–2017 The veraPDF Consortium. All rights reserved.