public class ImportManager
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.util.ArrayList<Contact> |
importContacts(java.io.File file,
ContactParser.ContactType type)
Import contacts from file
|
static java.util.HashSet<DeprecatedGateway> |
importDeprecatedGateways(java.io.File file)
Get set of deprecated gateways from a file
|
static java.util.HashSet<DeprecatedGateway> |
importDeprecatedGateways(java.lang.String resource)
Get set of deprecated gateways from jar resource
|
static java.util.HashSet<DeprecatedGateway> |
importDeprecatedGateways(java.net.URL url)
Get set of deprecated gateways from URL
|
static void |
importGatewayProperties(java.io.File file)
Import all gateway properties from file.
|
static java.util.TreeSet<Gateway> |
importGateways(java.io.File directory,
boolean deleteOnFail)
Import all gateways from directory
|
static java.util.TreeSet<Gateway> |
importGateways(java.lang.String resource)
Import all gateways from jar resource
|
static void |
importGlobalConfig(java.io.File file)
Import configuration from system-wide config into Config defaults
|
static java.util.ArrayList<History.Record> |
importHistory(java.io.File file)
Import sms history from file
|
static void |
importKeyring(java.io.File file)
Import keyring data from file.
|
static java.util.ArrayList<SMS> |
importQueue(java.io.File file)
Import sms queue from file
|
public static java.util.ArrayList<Contact> importContacts(java.io.File file, ContactParser.ContactType type) throws java.lang.Exception
java.lang.Exceptionpublic static java.util.ArrayList<SMS> importQueue(java.io.File file) throws java.lang.Exception
java.lang.Exceptionpublic static java.util.ArrayList<History.Record> importHistory(java.io.File file) throws java.lang.Exception
java.lang.Exceptionpublic static java.util.TreeSet<Gateway> importGateways(java.lang.String resource) throws java.io.IOException, java.beans.IntrospectionException
resource - jar absolute resource path where to look for gatewaysjava.io.IOException - When there is problem accessing gateway directory or filesjava.beans.IntrospectionException - When current JRE does not support JavaScript executionpublic static java.util.TreeSet<Gateway> importGateways(java.io.File directory, boolean deleteOnFail) throws java.io.IOException, java.beans.IntrospectionException
directory - directory where to look for gatewaysdeleteOnFail - whether to delete gateway files that fail to be loadedjava.io.IOException - When there is problem accessing gateway directory or filesjava.beans.IntrospectionException - When current JRE does not support JavaScript executionpublic static java.util.HashSet<DeprecatedGateway> importDeprecatedGateways(java.lang.String resource) throws java.io.IOException, org.xml.sax.SAXException
resource - jar absolute resource path with xml filejava.io.IOExceptionorg.xml.sax.SAXExceptionimportDeprecatedGateways(java.net.URL)public static java.util.HashSet<DeprecatedGateway> importDeprecatedGateways(java.io.File file) throws java.io.IOException, org.xml.sax.SAXException
file - xml containing description of deprecated gatewaysjava.io.IOExceptionorg.xml.sax.SAXExceptionimportDeprecatedGateways(java.net.URL)public static java.util.HashSet<DeprecatedGateway> importDeprecatedGateways(java.net.URL url) throws java.io.IOException, org.xml.sax.SAXException
url - url to xml file (file or jar url) containing description
of deprecated gatewaysjava.io.IOException - problem accessing jar resourceorg.xml.sax.SAXException - problem parsing the filepublic static void importKeyring(java.io.File file)
throws java.lang.Exception
file - File to import from.java.lang.Exception - When some error occur during file processing.public static void importGlobalConfig(java.io.File file)
throws java.io.IOException
java.io.IOExceptionpublic static void importGatewayProperties(java.io.File file)
throws java.io.IOException
java.io.IOException