org.robokind.api.common.config
Class FileSystemAdapterImpl
java.lang.Object
org.robokind.api.common.config.FileSystemAdapterImpl
- All Implemented Interfaces:
- FileSystemAdapter
public class FileSystemAdapterImpl
- extends Object
- implements FileSystemAdapter
FileSystemAdapter implementation for reading from operating system's file
system.
- Author:
- Matthew Stevenson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileSystemAdapterImpl
public FileSystemAdapterImpl()
openFile
public File openFile(String path)
- Description copied from interface:
FileSystemAdapter
- Opens the file at the given path.
- Specified by:
openFile
in interface FileSystemAdapter
- Parameters:
path
- location of the file to open
- Returns:
- File at the given path. null if the file cannot be opened
openImageIcon
public ImageIcon openImageIcon(String path)
- Description copied from interface:
FileSystemAdapter
- Opens the icon at the given path.
- Specified by:
openImageIcon
in interface FileSystemAdapter
- Parameters:
path
- location of the icon to open
- Returns:
- ImageIcon at the given path. null if the icon cannot be opened
Copyright © 2011. All Rights Reserved.