it.avutils.jmapper.config
Class ResourceLoader

java.lang.Object
  extended by it.avutils.jmapper.config.ResourceLoader

public class ResourceLoader
extends Object

The purpose, of ResourceLoader, is to load from classPath the resource requested.

Author:
Alessandro Vurro

Constructor Summary
ResourceLoader()
           
 
Method Summary
static InputStream loadResource(String resource)
          Returns an instance of inputStream if resource exists, null otherwise.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceLoader

public ResourceLoader()
Method Detail

loadResource

public static InputStream loadResource(String resource)
                                throws MalformedURLException,
                                       IOException
Returns an instance of inputStream if resource exists, null otherwise.

Parameters:
resource - resource to load
Returns:
an inputStream of resource if exists, null otherwise
Throws:
MalformedURLException
IOException


Copyright © 2013. All Rights Reserved.