Package edu.kit.mcda.wrapper.applet.io
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 Summary
Fields inherited from interface edu.kit.mcda.constants.IResourceDefinitions
CONFIG_DIR, CUSTOM_QUALITATIVE_VALUE_SETS_FILE, CUSTOM_VIEWS_FILE, DEFAULT_FLAGS_PATH, DEFAULT_INCLUDED_RESOURCES_PATH, DEFAULT_LOG4J_CONFIG_FILE, DEFAULT_LOG4J_FILE, DEFAULT_MCDA_FILE, DEFAULT_PLUGIN_CONFIG_FILE, DEFAULT_PREFERENCES_FILE, DEFAULT_QUALITATIVE_VALUE_SETS_FILE, DEFAULT_USER_MANUAL_FILE, DEFAULT_VIEWS_FILE, DOCS_DIR, EXAMPLES_DIR, I18N_DEFINITIONS_PREFIX, I18N_PREFIX, I18N_REPORT_BUNDLE, I18N_REPORT_PACKAGE, I18N_REPORT_PREFIX, I18N_SUFFIX, MCDA_XSLT_FILE, MCDA_XSLT_PATH, PLUGINS_DIR, PROCESS_EXTENSION, PROCESS_REPORT, REPORT_TEMPLATE_FILE, RESOURCES_DIR, THIRD_PARTY_FILE, WIZARD_BACKUP_FILE
Fields inherited from interface edu.kit.mcda.wrapper.applet.IResources
FILE_SEPARATOR
Fields inherited from interface org.fzk.constants.IValues
AMPERSAND, AT, BACKSLASH, BRACE_LEFT, BRACE_RIGHT, BRACKET_ANGLE_LEFT, BRACKET_ANGLE_RIGHT, BRACKET_CURLY_LEFT, BRACKET_CURLY_RIGHT, BRACKET_LEFT, BRACKET_RIGHT, BRACKET_ROUND_LEFT, BRACKET_ROUND_RIGHT, BRACKET_SQUARE_LEFT, BRACKET_SQUARE_RIGHT, CIRCUMFLEX, COLON, COMMA, DOLLAR, DOT, DOUBLE_QUOTE, EMPTY_STRING, EMPTY_STRING_ARRAY, EQUAL, GREATER_THAN, HASH, HOURS_PER_DAY, HYPHEN, LESS_THAN, LINEFEED, METER_PER_KILOMETER, MILLISECONDS_PER_DAY, MILLISECONDS_PER_HOUR, MILLISECONDS_PER_MINUTE, MILLISECONDS_PER_SECOND, MILLISECS_PER_DAY, MILLISECS_PER_HOUR, MILLISECS_PER_MINUTE, MILLISECS_PER_SECOND, MINUS, MINUTES_PER_HOUR, NOT_NAMED, NULL_STRING, PERCENT, PIPE, PLUS, QUESTION_MARK, QUOTE, SECONDS_PER_DAY, SECONDS_PER_HOUR, SECONDS_PER_MINUTE, SEMICOLON, SINGLE_QUOTE, SLASH, SPACE, SPACES, STAR, TAB, UNDERSCORE, UNKNOWN, ZERO_BYTE, ZERO_DOUBLE, ZERO_FLOAT, ZERO_INT, ZERO_LONG, ZERO_SHORT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if a file existgetListFromURL
(URL _url) Reads the files names from a directorygetListWithPrefix
(Vector _list, String _prefix) Returns the sourceterms of the current usergetListWithSuffix
(Vector _list, String _suffix) Returns the sourceterms of the current usergetWebFileListFromURL
(URL _url) Reads the files names from a directorygetWebFileListWithPrefix
(Vector _list, String _prefix) Returns the sourceterms of the current usergetWebFileListWithSuffix
(Vector _list, String _suffix) Returns the sourceterms of the current userboolean
isExisting
(String _file) Checks if a file existboolean
void
notifyOfHttpUpload
(int _status) void
setUploadFinished
(boolean _uploadFinished) boolean
upload
(Properties _properties, String _path, String _uploadComment) boolean
-
Field Details
-
REQUEST_LIST
- See Also:
-
-
Constructor Details
-
AppletIO
Beanstyle constructor of AppletIO.No parameters required. Calls preInit(), init() and postInit();- Parameters:
_codeBaseURL
-
-
-
Method Details
-
getListFromURL
Reads the files names from a directory- Parameters:
_url
-- Returns:
- the list of files
-
getWebFileListFromURL
Reads the files names from a directory- Parameters:
_url
-- Returns:
- the list of files
-
existFile
Checks if a file exist- Parameters:
_path
-_fileName
-- Returns:
-
isExisting
Checks if a file exist- Parameters:
_file
-- Returns:
-
getListWithSuffix
Returns the sourceterms of the current user- Parameters:
_list
-_suffix
-- Returns:
-
getListWithPrefix
Returns the sourceterms of the current user- Parameters:
_list
-_prefix
-- Returns:
-
getWebFileListWithSuffix
Returns the sourceterms of the current user- Parameters:
_list
-_suffix
-- Returns:
-
getWebFileListWithPrefix
Returns the sourceterms of the current user- Parameters:
_list
-_prefix
-- Returns:
-
upload
-
upload
-
notifyOfHttpUpload
public void notifyOfHttpUpload(int _status) - Specified by:
notifyOfHttpUpload
in interfaceIHttpUploadListener
-
getCodeBaseURL
-
isUploadFinished
public boolean isUploadFinished()- Returns:
- the uploadFinished
-
setUploadFinished
public void setUploadFinished(boolean _uploadFinished) - Parameters:
_uploadFinished
-
-