com.rapidminer.tools
Class ResourceSource

java.lang.Object
  extended by com.rapidminer.tools.ResourceSource

public class ResourceSource
extends java.lang.Object

ResourceSources can be added to the Tools class in order to allow resource loading for both the RapidMiner core and the plugin. Each plugin might add a new new resource source indicating where the sources of the plugin can be found. Please note that a resource path is only allowed to contain '/' instead of using File.separator. This must be considered if a new prefix should be defined.

Author:
Ingo Mierswa

Constructor Summary
ResourceSource(java.lang.ClassLoader loader)
           
ResourceSource(java.lang.ClassLoader loader, java.lang.String prefix)
           
 
Method Summary
 java.net.URL getResource(java.lang.String name)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourceSource

public ResourceSource(java.lang.ClassLoader loader)

ResourceSource

public ResourceSource(java.lang.ClassLoader loader,
                      java.lang.String prefix)
Method Detail

getResource

public java.net.URL getResource(java.lang.String name)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2001-2009 by Rapid-I