public class GenericFileDefaultBinding<T> extends Object implements GenericFileBinding<T>
| Constructor and Description |
|---|
GenericFileDefaultBinding() |
| 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
|
public GenericFileDefaultBinding()
public Object getBody(GenericFile<T> file)
GenericFileBindinggetBody in interface GenericFileBinding<T>file - the filepublic void setBody(GenericFile<T> file, Object body)
GenericFileBindingsetBody in interface GenericFileBinding<T>file - the filebody - the bodypublic void loadContent(Exchange exchange, GenericFile<?> file) throws IOException
GenericFileBindingloadContent in interface GenericFileBinding<T>exchange - the current exchangefile - the fileIOException - is thrown if the content could not be loadedApache Camel