public class SimpleFileSource extends AbstractModuleFixture<SimpleFileSource>
DisposableFileSupport| Modifier and Type | Class and Description |
|---|---|
static class |
SimpleFileSource.Mode |
label| Constructor and Description |
|---|
SimpleFileSource(java.lang.String dir,
java.lang.String fileName)
Construct a new SimpleFileSource using the provided directory and file names.
|
SimpleFileSource(java.lang.String dir,
java.lang.String fileName,
SimpleFileSource.Mode mode)
Construct a new SimpleFileSource using the provided directory and file names.
|
| Modifier and Type | Method and Description |
|---|---|
SimpleFileSource |
mode(SimpleFileSource.Mode mode)
Determines if the file object or the content of the file should be sent to the output channel.
|
protected java.lang.String |
toDSL()
Renders the default DSL for this fixture.
|
label, toStringpublic SimpleFileSource(java.lang.String dir,
java.lang.String fileName,
SimpleFileSource.Mode mode)
dir - directory namefileName - file namemode - 'FILE_AS_BYTES' if file content should be sent to output channel, 'REF' if file object should be sent, 'TEXT_LINE' for splitting the file into Strings (1 per line).public SimpleFileSource(java.lang.String dir,
java.lang.String fileName)
dir - directory namefileName - file nameprotected java.lang.String toDSL()
toDSL in class AbstractModuleFixture<SimpleFileSource>public SimpleFileSource mode(SimpleFileSource.Mode mode)
mode - 'FILE_AS_BYTES' if file content should be sent to output channel, 'REF' if file object should be sent, 'TEXT_LINE' for splitting the file into Strings (1 per line).