electric.util.resourceloader
Class ResourceLoaders

java.lang.Object
  extended byelectric.util.resourceloader.ResourceLoaders
All Implemented Interfaces:
ILoggingConstants

public class ResourceLoaders
extends java.lang.Object
implements ILoggingConstants

ResourceLoaders

Author:
webMethods

Field Summary
 
Fields inherited from interface electric.util.log.ILoggingConstants
CLASSLOADER_EVENT, COMMAND_EVENT, COMMENT_EVENT, CONFIG_EVENT, DEBUG_EVENT, ELECTRIC_LOGGING_PROPERTY, ERROR_EVENT, EXCEPTION_EVENT, FILE_EVENT, LICENSE_EVENT, RESOURCES_EVENT, SECURITY_EVENT, SHUTDOWN_EVENT, SOURCE_EVENT, SQL_EVENT, STARTUP_EVENT, WARNING_EVENT
 
Constructor Summary
ResourceLoaders()
           
 
Method Summary
static void addResourceLoader(java.lang.String protocol, IResourceLoader loader)
           
static FileResourceLoader getFileResourceLoader()
           
static IResourceLoader getResourceLoader(java.lang.String protocol)
           
static byte[] loadResource(java.lang.String path)
           
static byte[] loadResource(java.lang.String path, Context context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceLoaders

public ResourceLoaders()
Method Detail

addResourceLoader

public static void addResourceLoader(java.lang.String protocol,
                                     IResourceLoader loader)
Parameters:
protocol -
loader -

getResourceLoader

public static IResourceLoader getResourceLoader(java.lang.String protocol)
Parameters:
protocol -

getFileResourceLoader

public static FileResourceLoader getFileResourceLoader()

loadResource

public static byte[] loadResource(java.lang.String path)
                           throws java.io.IOException
Parameters:
path -
Throws:
java.io.IOException

loadResource

public static byte[] loadResource(java.lang.String path,
                                  Context context)
                           throws java.io.IOException
Parameters:
path -
context -
Throws:
java.io.IOException


copyright© 2001-2004 by webMethods All Rights Reserved.