Class AppletIO

java.lang.Object
edu.kit.mcda.wrapper.applet.io.AppletIO
All Implemented Interfaces:
IResourceDefinitions, IResources, IHttpUploadListener, org.fzk.constants.IValues

public class AppletIO extends Object implements IResources, org.fzk.constants.IValues, IHttpUploadListener
Author:
susan
  • Field Details

  • Constructor Details

    • AppletIO

      public AppletIO(URL _codeBaseURL)
      Beanstyle constructor of AppletIO.No parameters required. Calls preInit(), init() and postInit();
      Parameters:
      _codeBaseURL -
  • Method Details

    • getListFromURL

      public Vector<String> getListFromURL(URL _url)
      Reads the files names from a directory
      Parameters:
      _url -
      Returns:
      the list of files
    • getWebFileListFromURL

      public Vector<WebFile> getWebFileListFromURL(URL _url)
      Reads the files names from a directory
      Parameters:
      _url -
      Returns:
      the list of files
    • existFile

      public boolean existFile(String _path, String _fileName)
      Checks if a file exist
      Parameters:
      _path -
      _fileName -
      Returns:
    • isExisting

      public boolean isExisting(String _file)
      Checks if a file exist
      Parameters:
      _file -
      Returns:
    • getListWithSuffix

      public Vector getListWithSuffix(Vector _list, String _suffix)
      Returns the sourceterms of the current user
      Parameters:
      _list -
      _suffix -
      Returns:
    • getListWithPrefix

      public Vector getListWithPrefix(Vector _list, String _prefix)
      Returns the sourceterms of the current user
      Parameters:
      _list -
      _prefix -
      Returns:
    • getWebFileListWithSuffix

      public Vector getWebFileListWithSuffix(Vector _list, String _suffix)
      Returns the sourceterms of the current user
      Parameters:
      _list -
      _suffix -
      Returns:
    • getWebFileListWithPrefix

      public Vector getWebFileListWithPrefix(Vector _list, String _prefix)
      Returns the sourceterms of the current user
      Parameters:
      _list -
      _prefix -
      Returns:
    • upload

      public boolean upload(org.jdom2.Document _document, String _path, String _uploadComment)
    • upload

      public boolean upload(Properties _properties, String _path, String _uploadComment)
    • notifyOfHttpUpload

      public void notifyOfHttpUpload(int _status)
      Specified by:
      notifyOfHttpUpload in interface IHttpUploadListener
    • getCodeBaseURL

      public URL getCodeBaseURL()
    • isUploadFinished

      public boolean isUploadFinished()
      Returns:
      the uploadFinished
    • setUploadFinished

      public void setUploadFinished(boolean _uploadFinished)
      Parameters:
      _uploadFinished -