Package org.apache.camel.component.file
Class FileBinding
java.lang.Object
org.apache.camel.component.file.FileBinding
- All Implemented Interfaces:
 GenericFileBinding<File>
File binding with the 
File type.- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiongetBody(GenericFile<File> file) Gets the body of the filevoidloadContent(org.apache.camel.Exchange exchange, GenericFile<?> file) Ensures the content is loaded from the file into memoryvoidsetBody(GenericFile<File> file, Object body) Sets the body from the given file 
- 
Constructor Details
- 
FileBinding
public FileBinding() 
 - 
 - 
Method Details
- 
getBody
Description copied from interface:GenericFileBindingGets the body of the file- Specified by:
 getBodyin interfaceGenericFileBinding<File>- Parameters:
 file- the file- Returns:
 - the body
 
 - 
setBody
Description copied from interface:GenericFileBindingSets the body from the given file- Specified by:
 setBodyin interfaceGenericFileBinding<File>- Parameters:
 file- the filebody- the body
 - 
loadContent
Description copied from interface:GenericFileBindingEnsures the content is loaded from the file into memory- Specified by:
 loadContentin interfaceGenericFileBinding<File>- Parameters:
 exchange- the current exchangefile- the file- Throws:
 IOException- is thrown if the content could not be loaded
 
 -