|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectco.uk.hjcs.canyon.provider.impl.PropertyFileProvider
public class PropertyFileProvider
The default property based file provider. Sources config, input and output files based on the value of the property. If the file cannot be read (ie does not exist, or does not have permission) validation will fail and an exception will be thrown
| Constructor Summary | |
|---|---|
PropertyFileProvider(java.lang.String propertyName,
boolean createable,
boolean appendable)
|
|
| Method Summary | |
|---|---|
java.io.InputStream |
getConfigStream(java.lang.String propertyName,
java.util.Properties properties)
This interface provides the capability to load the mapping and configuration for Canyon to process. |
java.io.InputStream[] |
getInputStreams(java.util.Properties properties)
Returns an array of input streams to be consumed as input configuration or data |
java.io.OutputStream[] |
getOutputStreams(java.util.Properties properties)
Returns an array of output streams to be used for output data |
void |
validate(java.util.Properties properties)
Is called to validate the input streams, so that Canyon can operate on them |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyFileProvider(java.lang.String propertyName,
boolean createable,
boolean appendable)
| Method Detail |
|---|
public java.io.InputStream[] getInputStreams(java.util.Properties properties)
CanyonInputProvider
getInputStreams in interface CanyonInputProviderproperties - - the properties defined in the configuration
public void validate(java.util.Properties properties)
throws CanyonException
CanyonInputProvider
validate in interface CanyonInputProvidervalidate in interface CanyonOutputProviderproperties - - the properties defined in the configuration
CanyonExceptionpublic java.io.OutputStream[] getOutputStreams(java.util.Properties properties)
CanyonOutputProvider
getOutputStreams in interface CanyonOutputProviderproperties - - the properties defined in the configuration
public java.io.InputStream getConfigStream(java.lang.String propertyName,
java.util.Properties properties)
CanyonConfigProvider
getConfigStream in interface CanyonConfigProviderpropertyName - - the name of the stream to loadproperties - - the properties associated with the configuration parameter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||