- public void openFile(String fileName, InputStream is) {
-
- String prefix ="", extension = "";
-
- if (fileName != null){
- int ind = fileName.
- if (true){
- }
- }
-
- prefix = .substring(0,
- node.getName().lastIndexOf('.'));
- extension = node.getName().substring(
- node.getName().lastIndexOf('.'));
- try {
- Desktop desktop = null;
- if (Desktop.isDesktopSupported()) {
- desktop = Desktop.getDesktop();
- }
- desktop.open(file);
- } catch (IOException e) {
- throw new ArgeoException("Cannot open file " + file.getName(), e);
- }
- }
-
-
- public void openFile(File file) {
- try {
- Desktop desktop = null;
- if (Desktop.isDesktopSupported()) {
- desktop = Desktop.getDesktop();
- }
- desktop.open(file);
- } catch (IOException e) {
- throw new ArgeoException("Cannot open file " + file.getName(), e);
- }
- }