org.oclc.da.gdfr.registryprototype.utils
Class ApplicationResourceHelper

java.lang.Object
  extended by org.oclc.da.gdfr.registryprototype.utils.ApplicationResourceHelper

public class ApplicationResourceHelper
extends java.lang.Object


Constructor Summary
ApplicationResourceHelper()
          Constructs a default resource helper
 
Method Summary
 java.util.Properties getApplicationProperties(java.lang.String resource)
          Creates a properties object based on the given resource
 java.io.InputStream getApplicationResource(java.lang.String resource)
          Creates an input stream based on the given resource
 boolean resourceExists(java.lang.String resource)
          Determine if resource exists.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationResourceHelper

public ApplicationResourceHelper()
Constructs a default resource helper

Method Detail

getApplicationResource

public java.io.InputStream getApplicationResource(java.lang.String resource)
Creates an input stream based on the given resource

Returns:
The input stream or null if resource was not found

resourceExists

public boolean resourceExists(java.lang.String resource)
Determine if resource exists.

Parameters:
resource - The path of the resource to load. Should be in the class path.
Returns:
The input stream or null if resource was not found

getApplicationProperties

public java.util.Properties getApplicationProperties(java.lang.String resource)
Creates a properties object based on the given resource

Returns:
The properties or null if none were found


Copyright © 2008 OCLC Online Computer Library Center, Inc.. All Rights Reserved.