public class SimpleFileSource extends AbstractModuleFixture<SimpleFileSource>
DisposableFileSupport
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,
boolean reference)
Construct a new SimpleFileSource using the provided directory and file names.
|
Modifier and Type | Method and Description |
---|---|
SimpleFileSource |
reference(boolean reference)
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, toString
public SimpleFileSource(java.lang.String dir, java.lang.String fileName, boolean reference)
dir
- directory namefileName
- file namereference
- false if file content should be sent to output channel, true if file object should be sent.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 reference(boolean reference)
reference
- Set to true to output the File object itself. False if content should be sent.