org.apache.camel.component.file
Interface GenericFileBinding<T>

All Known Implementing Classes:
FileBinding, GenericFileDefaultBinding

public interface GenericFileBinding<T>

Binding between the generic file and the body content.


Method Summary
 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
 

Method Detail

getBody

Object getBody(GenericFile<T> file)
Gets the body of the file

Parameters:
file - the file
Returns:
the body

setBody

void setBody(GenericFile<T> file,
             Object body)
Sets the body from the given file

Parameters:
file - the file
body - the body

loadContent

void loadContent(Exchange exchange,
                 GenericFile<?> file)
                 throws IOException
Ensures the content is loaded from the file into memory

Parameters:
exchange - the current exchange
file - the file
Throws:
IOException - is thrown if the content could not be loaded


Apache CAMEL