org.apache.camel.component.file
Class GenericFileDefaultBinding<T>

java.lang.Object
  extended by org.apache.camel.component.file.GenericFileDefaultBinding<T>
All Implemented Interfaces:
GenericFileBinding<T>

public class GenericFileDefaultBinding<T>
extends Object
implements GenericFileBinding<T>

Default binding for generic file.


Constructor Summary
GenericFileDefaultBinding()
           
 
Method Summary
 Object getBody(GenericFile<T> file)
          Gets the body of the file
 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

GenericFileDefaultBinding

public GenericFileDefaultBinding()
Method Detail

getBody

public Object getBody(GenericFile<T> file)
Description copied from interface: GenericFileBinding
Gets the body of the file

Specified by:
getBody in interface GenericFileBinding<T>
Parameters:
file - the file
Returns:
the body

setBody

public void setBody(GenericFile<T> file,
                    Object body)
Description copied from interface: GenericFileBinding
Sets the body from the given file

Specified by:
setBody in interface GenericFileBinding<T>
Parameters:
file - the file
body - the body


Copyright © 2009 Apache Software Foundation. All Rights Reserved.