private void classifyName(String name) {
		// isURL = false;
		if (name == null)
			return;
		if (appletDocumentBase != null) {
			// This code is only for the applet
			// isURL = true;
			String defaultDirectory = viewer.getDefaultDirectory();
			try {
				if (defaultDirectory != null && name.indexOf(":/") < 0)
					name = defaultDirectory + "/" + name;
				URL url = new URL(appletDocumentBase, name);
				fullPathName = url.toString();
				// we add one to lastIndexOf(), so don't worry about -1 return value
				fileName = fullPathName.substring(fullPathName.lastIndexOf('/') + 1, fullPathName.length());
			}
			catch (MalformedURLException e) {
				openErrorMessage = e.getMessage();
			}
			return;
		}
		// This code is for the app
		for (int i = 0; i < urlPrefixes.length; ++i) {
			if (name.startsWith(urlPrefixes[i])) {
				// isURL = true;
				try {
					URL url = new URL(name);
					fullPathName = url.toString();
					fileName = fullPathName.substring(fullPathName.lastIndexOf('/') + 1, fullPathName.length());
				}
				catch (MalformedURLException e) {
					openErrorMessage = e.getMessage();
				}
				return;
			}
		}
		// isURL = false;
		file = new File(name);
		fullPathName = file.getAbsolutePath();
		fileName = file.getName();
	}