com.jp.protection.pub.pro.ls
Class JarLauncherConfigStorage
java.lang.Object
com.jp.protection.pub.pro.ls.BasicLauncherConfigStorage
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
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 |
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
JarLauncherConfigStorage
public JarLauncherConfigStorage()
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 fromaReader
- 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 fromaReader
- 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