|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectesmska.persistence.ImportManager
public class ImportManager
Import program data
| Method Summary | |
|---|---|
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.TreeSet<Gateway> |
importGateways(java.io.File directory)
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.util.ArrayList<Contact> importContacts(java.io.File file,
ContactParser.ContactType type)
throws java.lang.Exception
java.lang.Exception
public static java.util.ArrayList<SMS> importQueue(java.io.File file)
throws java.io.IOException
java.io.IOException
public static java.util.ArrayList<History.Record> importHistory(java.io.File file)
throws java.io.IOException,
java.text.ParseException
java.io.IOException
java.text.ParseException
public 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 gateways
java.io.IOException - When there is problem accessing gateway directory or files
java.beans.IntrospectionException - When current JRE does not support JavaScript execution
public static java.util.TreeSet<Gateway> importGateways(java.io.File directory)
throws java.io.IOException,
java.beans.IntrospectionException
directory - directory where to look for gateways
java.io.IOException - When there is problem accessing gateway directory or files
java.beans.IntrospectionException - When current JRE does not support JavaScript execution
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 gateways
java.io.IOException - problem accessing the file
org.xml.sax.SAXException - problem parsing the file
public static void importKeyring(java.io.File file)
throws java.io.IOException,
java.security.GeneralSecurityException
file - File to import from.
java.io.IOException - When some error occur during file processing.
java.security.GeneralSecurityException - When there is problem with
key decryption.
public static void importGlobalConfig(java.io.File file)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||