org.robokind.api.common.config
Class FileSystemAdapterImpl

java.lang.Object
  extended by 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

Constructor Summary
FileSystemAdapterImpl()
           
 
Method Summary
 File openFile(String path)
          Opens the file at the given path.
 ImageIcon openImageIcon(String path)
          Opens the icon at the given path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSystemAdapterImpl

public FileSystemAdapterImpl()
Method Detail

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-2013. All Rights Reserved.