public interface GenericFileBinding<T>
Modifier and Type | Method and Description |
---|---|
Object |
getBody(GenericFile<T> file)
Gets the body of the file
|
void |
loadContent(Exchange exchange,
GenericFile<?> file)
Ensures the content is loaded from the file into memory
|
void |
setBody(GenericFile<T> file,
Object body)
Sets the body from the given file
|
Object getBody(GenericFile<T> file)
file
- the filevoid setBody(GenericFile<T> file, Object body)
file
- the filebody
- the bodyvoid loadContent(Exchange exchange, GenericFile<?> file) throws IOException
exchange
- the current exchangefile
- the fileIOException
- is thrown if the content could not be loadedApache Camel