co.uk.hjcs.canyon.config
Class Resource
java.lang.Object
co.uk.hjcs.canyon.config.Resource
public class Resource
- extends java.lang.Object
Immutable object representing a resource that Canyon can work with
- Author:
- HJC Solutions Ltd (http://canyon.hjcsolutions.co.uk)
|
Constructor Summary |
Resource(ResourceType resourceType,
java.io.InputStream inputStream,
java.lang.String description,
java.util.Properties inputProperties)
|
Resource(ResourceType resourceType,
java.io.OutputStream outputStream,
java.lang.String description,
java.lang.String prefix,
java.lang.String postfix,
java.lang.String fileDateFormat,
boolean createable,
boolean appendable,
java.util.Properties outputProperties)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Resource
public Resource(ResourceType resourceType,
java.io.InputStream inputStream,
java.lang.String description,
java.util.Properties inputProperties)
Resource
public Resource(ResourceType resourceType,
java.io.OutputStream outputStream,
java.lang.String description,
java.lang.String prefix,
java.lang.String postfix,
java.lang.String fileDateFormat,
boolean createable,
boolean appendable,
java.util.Properties outputProperties)
getResourceType
public ResourceType getResourceType()
getInputStream
public java.io.InputStream getInputStream()
getOutputStream
public java.io.OutputStream getOutputStream()
getDescription
public java.lang.String getDescription()
isCreateable
public boolean isCreateable()
isAppendable
public boolean isAppendable()
getFilePostFix
public java.lang.String getFilePostFix()
getFilePreFix
public java.lang.String getFilePreFix()
getFileDateFormat
public java.lang.String getFileDateFormat()
addInputProperty
public void addInputProperty(java.lang.String key,
java.lang.String value)
getInputProperty
public java.lang.String getInputProperty(java.lang.String key)
addOutputProperty
public void addOutputProperty(java.lang.String key,
java.lang.String value)
getOutputProperties
public java.util.Properties getOutputProperties()
getInputProperties
public java.util.Properties getInputProperties()
getOutputProperty
public java.lang.String getOutputProperty(java.lang.String key)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object