com.jp.protection.pub.pro.ls
Class JarLauncherConfigStorage

java.lang.Object
  extended by com.jp.protection.pub.pro.ls.BasicLauncherConfigStorage
      extended by com.jp.protection.pub.pro.ls.JarLauncherConfigStorage
All Implemented Interfaces:
LauncherConfigStorage
Direct Known Subclasses:
JarModifiableLauncherConfigStorage

public class JarLauncherConfigStorage
extends BasicLauncherConfigStorage

Jar file based implementation of the LauncherConfigStorage

Since:
3.0

Nested Class Summary
 
Nested classes/interfaces inherited from class com.jp.protection.pub.pro.ls.BasicLauncherConfigStorage
BasicLauncherConfigStorage.EntryLicenseReader, BasicLauncherConfigStorage.EntryProtectionLauncher
 
Field Summary
static java.lang.String EXTENSION_LAUNCHER_CONFIG
           
static java.lang.String ROOT_LAUNCHER_CONFIGS
           
 
Fields inherited from class com.jp.protection.pub.pro.ls.BasicLauncherConfigStorage
fLauncherConfigs, fLauncherConfigStorageListeners, fModified
 
Constructor Summary
JarLauncherConfigStorage()
           
 
Method Summary
protected  java.io.InputStream getInputStream(java.io.Serializable anObject)
           
protected  java.lang.String getJarEntryName(ProtectionLauncherConfig launcherConfig)
           
 void load(java.io.File aFile, ProtectionLauncherConfigReader aReader)
          Loads storage from specified Jar file using supplied reader
 void load(java.io.InputStream anInputStream, ProtectionLauncherConfigReader aReader)
          Loads storage from specified stream using supplied reader
protected  void loadLauncherConfig(java.util.jar.JarInputStream aJarInputStream, java.util.jar.JarEntry aJarEntry, ProtectionLauncherConfigReader aReader)
           
 
Methods inherited from class com.jp.protection.pub.pro.ls.BasicLauncherConfigStorage
addLauncherConfig, addLauncherConfigStorageListener, createLauncher, fireLauncherConfigAdded, fireLauncherConfigRemoved, fireLauncherConfigStorageLoaded, fireLauncherConfigStorageSaved, getLauncher, getLauncherConfig, getLauncherConfig, getLauncherConfig, getLauncherConfigs, getLicenseFileLocation, getLicenseReader, removeLauncherConfigStorageListener, setModified, updateLicenseEntryProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ROOT_LAUNCHER_CONFIGS

public static final java.lang.String ROOT_LAUNCHER_CONFIGS
See Also:
Constant Field Values

EXTENSION_LAUNCHER_CONFIG

public static final java.lang.String EXTENSION_LAUNCHER_CONFIG
See Also:
Constant Field Values
Constructor Detail

JarLauncherConfigStorage

public JarLauncherConfigStorage()
Method Detail

load

public void load(java.io.File aFile,
                 ProtectionLauncherConfigReader aReader)
          throws java.io.IOException
Loads storage from specified Jar file using supplied reader

Parameters:
aFile - Jar file to load storage from
aReader - reader to use
Throws:
java.io.IOException - for any errors occured during loading

load

public void load(java.io.InputStream anInputStream,
                 ProtectionLauncherConfigReader aReader)
          throws java.io.IOException
Loads storage from specified stream using supplied reader

Parameters:
anInputStream - stream to load storage from
aReader - reader to use
Throws:
java.io.IOException - for any errors occured during loading

loadLauncherConfig

protected void loadLauncherConfig(java.util.jar.JarInputStream aJarInputStream,
                                  java.util.jar.JarEntry aJarEntry,
                                  ProtectionLauncherConfigReader aReader)
                           throws java.io.IOException
Throws:
java.io.IOException

getJarEntryName

protected java.lang.String getJarEntryName(ProtectionLauncherConfig launcherConfig)

getInputStream

protected java.io.InputStream getInputStream(java.io.Serializable anObject)
                                      throws java.io.IOException
Throws:
java.io.IOException