Class BaseDataForAnApplication

    • 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()
      • 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