com.ebasetech.ufs.utility
Class ResourceFileset

java.lang.Object
  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
          extended byjava.util.Properties
              extended bycom.ebasetech.ufs.utility.MultiLevelProperties
                  extended bycom.ebasetech.ufs.utility.ResourceFileset
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class ResourceFileset
extends MultiLevelProperties

deals with Property files, that reference other resource files. e.g. name = myfile name.res = myfilename.xml

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.util.Hashtable
 
Field Summary
private  java.lang.String basePath
           
private  java.lang.Class resourceBase
           
static java.lang.String resSuffix
           
 
Fields inherited from class java.util.Properties
defaults
 
Fields inherited from class java.util.Hashtable
 
Constructor Summary
ResourceFileset(java.lang.Class resourceBase, java.lang.String basePath)
           
 
Method Summary
 java.io.InputStream getResourceInputStream(java.lang.String name)
           
 java.lang.String getResourceText(java.lang.String name)
           
 
Methods inherited from class com.ebasetech.ufs.utility.MultiLevelProperties
getFirstLevelNames, getProperryLevelName, getPropertyValue
 
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, load, propertyNames, save, setProperty, store
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

resSuffix

public static java.lang.String resSuffix

resourceBase

private java.lang.Class resourceBase

basePath

private java.lang.String basePath
Constructor Detail

ResourceFileset

public ResourceFileset(java.lang.Class resourceBase,
                       java.lang.String basePath)
Parameters:
resourceBase - a class to base resource loading from
basePath - and additional path to prefix filenames. null if the resourceBase is OK
Method Detail

getResourceInputStream

public java.io.InputStream getResourceInputStream(java.lang.String name)

getResourceText

public java.lang.String getResourceText(java.lang.String name)
                                 throws java.io.IOException
Throws:
java.io.IOException