|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.component.file.GenericFileDefaultBinding<T>
public class GenericFileDefaultBinding<T>
Default binding for generic file.
Constructor Summary | |
---|---|
GenericFileDefaultBinding()
|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GenericFileDefaultBinding()
Method Detail |
---|
public Object getBody(GenericFile<T> file)
GenericFileBinding
getBody
in interface GenericFileBinding<T>
file
- the file
public void setBody(GenericFile<T> file, Object body)
GenericFileBinding
setBody
in interface GenericFileBinding<T>
file
- the filebody
- the bodypublic void loadContent(Exchange exchange, GenericFile<?> file) throws IOException
GenericFileBinding
loadContent
in interface GenericFileBinding<T>
exchange
- the current exchangefile
- the file
IOException
- is thrown if the content could not be loaded
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |