|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.component.file.FileBinding
public class FileBinding
File binding with the File
type.
Constructor Summary | |
---|---|
FileBinding()
|
Method Summary | |
---|---|
Object |
getBody(GenericFile<File> 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<File> 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 FileBinding()
Method Detail |
---|
public Object getBody(GenericFile<File> file)
GenericFileBinding
getBody
in interface GenericFileBinding<File>
file
- the file
public void setBody(GenericFile<File> file, Object body)
GenericFileBinding
setBody
in interface GenericFileBinding<File>
file
- the filebody
- the bodypublic void loadContent(Exchange exchange, GenericFile<?> file) throws IOException
GenericFileBinding
loadContent
in interface GenericFileBinding<File>
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 |