com.jp.protection.pub
Class LicenseReader.FileStorage

java.lang.Object
  extended by com.jp.protection.pub.LicenseReader.FileStorage
All Implemented Interfaces:
LicenseReader.Storage
Enclosing class:
LicenseReader

public static class LicenseReader.FileStorage
extends java.lang.Object
implements LicenseReader.Storage


Field Summary
protected  LicenseReader fLicenseReader
           
 
Constructor Summary
LicenseReader.FileStorage(LicenseReader aLicenseReader)
           
 
Method Summary
 boolean backupLicense()
           
 boolean canRestoreLicenseFromBackup()
           
 java.io.InputStream getBackupLicenseInputStream()
           
protected  int getBackupNumber(java.io.File aBackupFile)
           
 java.util.List<java.io.File> getLicenseBackups()
           
 java.io.InputStream getLicenseInputStream()
           
 java.io.OutputStream getLicenseOutputStream()
           
protected  java.io.File getNewBackupLicenseFile()
           
 boolean isSupportsLicenseBackup()
           
 boolean removeLicense()
           
 boolean restoreLicenseFromBackup()
           
 boolean restoreLicenseFromBackup(java.io.File aBackupFile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fLicenseReader

protected LicenseReader fLicenseReader
Constructor Detail

LicenseReader.FileStorage

public LicenseReader.FileStorage(LicenseReader aLicenseReader)
Method Detail

getLicenseInputStream

public java.io.InputStream getLicenseInputStream()
Specified by:
getLicenseInputStream in interface LicenseReader.Storage

getLicenseOutputStream

public java.io.OutputStream getLicenseOutputStream()
Specified by:
getLicenseOutputStream in interface LicenseReader.Storage

getBackupNumber

protected int getBackupNumber(java.io.File aBackupFile)

getLicenseBackups

public java.util.List<java.io.File> getLicenseBackups()

restoreLicenseFromBackup

public boolean restoreLicenseFromBackup()
Specified by:
restoreLicenseFromBackup in interface LicenseReader.Storage

restoreLicenseFromBackup

public boolean restoreLicenseFromBackup(java.io.File aBackupFile)

getNewBackupLicenseFile

protected java.io.File getNewBackupLicenseFile()

backupLicense

public boolean backupLicense()
Specified by:
backupLicense in interface LicenseReader.Storage

isSupportsLicenseBackup

public boolean isSupportsLicenseBackup()
Specified by:
isSupportsLicenseBackup in interface LicenseReader.Storage

canRestoreLicenseFromBackup

public boolean canRestoreLicenseFromBackup()
Specified by:
canRestoreLicenseFromBackup in interface LicenseReader.Storage

getBackupLicenseInputStream

public java.io.InputStream getBackupLicenseInputStream()
Specified by:
getBackupLicenseInputStream in interface LicenseReader.Storage

removeLicense

public boolean removeLicense()
Specified by:
removeLicense in interface LicenseReader.Storage