Class BaseDataForTheUserPreferences
- java.lang.Object
-
- de.desy.mst.libs.framework.mstapp.ini.ABaseDataOfMstIni
-
- de.desy.mst.libs.framework.mstapp.ini.BaseDataForTheUserPreferences
-
- All Implemented Interfaces:
IIniFileObserver
public class BaseDataForTheUserPreferences extends ABaseDataOfMstIni
User Preference Files Have no Web Address- Author:
- ws
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
BACKUP_SUFFIX
static java.lang.String
FILE_SUFFIX
static java.lang.String
FILETYP
static java.lang.String
NAME
static java.lang.String
SHORTDESCRIPTION
static java.lang.String
SRV_NAME
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
backupWebToFile()
protected java.lang.String
calcFileName(java.lang.String appName)
protected java.lang.String
calcFileName(java.lang.String appName, java.lang.Object specificInfo)
if before complete Construction more Info is needed !needs to be existent befor XTor!protected java.lang.String
calcFileTyp()
protected java.lang.String
calcWebAddress()
void
checkUserOkForWriting()
static java.lang.String
cleanAppname(java.lang.String appName)
static java.util.List<java.lang.String>
getAccessedWebAdresses()
ApplicationInfo
getApplicationInfo()
java.io.InputStream
getFileInputStream()
java.lang.String
getName()
java.lang.String
getShortDescription()
java.io.InputStream
getWebInputStream()
boolean
isOkForWriting()
protected java.lang.String
readAsStringWithoutIOManager()
Buffered read (Web -> local without touching the fileRootjava.lang.String
readFileAsString()
static java.lang.String
readFileAsString(java.lang.String fileName)
java.lang.String
readWebAsString()
void
writeFileAsString(java.lang.String string)
-
Methods inherited from class de.desy.mst.libs.framework.mstapp.ini.ABaseDataOfMstIni
getDefaultIniBaumRoot, onNewIniAvailable, onPrepareForExport
-
-
-
-
Field Detail
-
FILETYP
public static final java.lang.String FILETYP
- See Also:
- Constant Field Values
-
SHORTDESCRIPTION
public static final java.lang.String SHORTDESCRIPTION
- See Also:
- Constant Field Values
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
SRV_NAME
public static final java.lang.String SRV_NAME
- See Also:
- Constant Field Values
-
FILE_SUFFIX
public static final java.lang.String FILE_SUFFIX
- See Also:
- Constant Field Values
-
BACKUP_SUFFIX
public static final java.lang.String BACKUP_SUFFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
calcFileName
protected java.lang.String calcFileName(java.lang.String appName)
-
calcWebAddress
protected java.lang.String calcWebAddress()
-
calcFileTyp
protected java.lang.String calcFileTyp()
-
getShortDescription
public java.lang.String getShortDescription()
-
cleanAppname
public static java.lang.String cleanAppname(java.lang.String appName)
-
getAccessedWebAdresses
public static final java.util.List<java.lang.String> getAccessedWebAdresses()
-
readFileAsString
public static java.lang.String readFileAsString(java.lang.String fileName) throws java.io.FileNotFoundException, java.io.IOException
- Throws:
java.io.FileNotFoundException
java.io.IOException
-
calcFileName
protected java.lang.String calcFileName(java.lang.String appName, java.lang.Object specificInfo)
if before complete Construction more Info is needed !needs to be existent befor XTor!
-
getName
public java.lang.String getName()
-
getApplicationInfo
public ApplicationInfo getApplicationInfo()
-
isOkForWriting
public final boolean isOkForWriting()
-
checkUserOkForWriting
public final void checkUserOkForWriting()
-
getFileInputStream
public final java.io.InputStream getFileInputStream() throws java.io.FileNotFoundException
- Throws:
java.io.FileNotFoundException
-
getWebInputStream
public final java.io.InputStream getWebInputStream() throws java.net.MalformedURLException, java.io.IOException
- Throws:
java.net.MalformedURLException
java.io.IOException
-
backupWebToFile
public final boolean backupWebToFile()
- Returns:
- true on success, else false
-
readAsStringWithoutIOManager
protected java.lang.String readAsStringWithoutIOManager() throws java.io.FileNotFoundException, java.io.IOException
Buffered read (Web -> local without touching the fileRoot- Throws:
java.io.FileNotFoundException
java.io.IOException
-
readWebAsString
public final java.lang.String readWebAsString() throws java.io.FileNotFoundException, java.net.MalformedURLException, java.io.IOException
- Throws:
java.io.FileNotFoundException
java.net.MalformedURLException
java.io.IOException
-
readFileAsString
public final java.lang.String readFileAsString() throws java.io.FileNotFoundException, java.io.IOException
- Throws:
java.io.FileNotFoundException
java.io.IOException
-
writeFileAsString
public final void writeFileAsString(java.lang.String string) throws java.io.FileNotFoundException, java.io.IOException
- Throws:
java.io.FileNotFoundException
java.io.IOException
-
-