co.uk.hjcs.canyon.util
Class StreamLoader

java.lang.Object
  extended by co.uk.hjcs.canyon.util.StreamLoader

public class StreamLoader
extends java.lang.Object

Utility class to help obtain streams

Author:
HJC Solutions Ltd (http://canyon.hjcsolutions.co.uk)

Constructor Summary
StreamLoader()
           
 
Method Summary
static Resource getConfigResource(java.lang.String resourceValue, ResourceType resourceType, java.util.Properties properties)
          Returns a configuration resource.
static java.util.List<Resource> getInputResources(java.lang.String resourceValue, ResourceType resourceType, java.util.Properties properties)
           
static java.util.List<Resource> getOutputResources(java.lang.String resourceValue, ResourceType resourceType, java.lang.String prefix, java.lang.String postfix, java.lang.String dateFormat, boolean createable, boolean appendable, java.util.Properties properties)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamLoader

public StreamLoader()
Method Detail

getOutputResources

public static java.util.List<Resource> getOutputResources(java.lang.String resourceValue,
                                                          ResourceType resourceType,
                                                          java.lang.String prefix,
                                                          java.lang.String postfix,
                                                          java.lang.String dateFormat,
                                                          boolean createable,
                                                          boolean appendable,
                                                          java.util.Properties properties)

getInputResources

public static java.util.List<Resource> getInputResources(java.lang.String resourceValue,
                                                         ResourceType resourceType,
                                                         java.util.Properties properties)

getConfigResource

public static Resource getConfigResource(java.lang.String resourceValue,
                                         ResourceType resourceType,
                                         java.util.Properties properties)
Returns a configuration resource. If none found null is returned

Parameters:
resourceValue -
resourceType -
properties -
Returns:
the Resource object that contains the stream. If none found null.