|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectco.uk.hjcs.canyon.provider.impl.DefaultFileProvider
public class DefaultFileProvider
The default file provider. Sources config, input and output files based on the fileName. If the file cannot be read (ie does not exist, or does not have permision) and the file value createable is false validation will fail and an exception will be thrown
| Constructor Summary | |
|---|---|
DefaultFileProvider()
|
|
DefaultFileProvider(java.lang.String fileName)
|
|
DefaultFileProvider(java.lang.String fileName,
boolean createable,
boolean appendable)
|
|
| Method Summary | |
|---|---|
java.io.InputStream |
getConfigStream(java.lang.String fileName,
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 DefaultFileProvider(java.lang.String fileName,
boolean createable,
boolean appendable)
public DefaultFileProvider(java.lang.String fileName)
public DefaultFileProvider()
| 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 fileName,
java.util.Properties properties)
CanyonConfigProvider
getConfigStream in interface CanyonConfigProviderfileName - - 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 | |||||||||