org.apache.camel.component.flatpack
Class FixedLengthEndpoint

java.lang.Object
  extended by org.apache.camel.impl.DefaultEndpoint
      extended by org.apache.camel.impl.ScheduledPollEndpoint
          extended by org.apache.camel.impl.DefaultPollingEndpoint
              extended by org.apache.camel.component.flatpack.FixedLengthEndpoint
All Implemented Interfaces:
CamelContextAware, Endpoint, IsSingleton, Service, HasId
Direct Known Subclasses:
DelimitedEndpoint

public class FixedLengthEndpoint
extends DefaultPollingEndpoint

A Flatpack Endpoint for working with fixed width and delimited files

Version:
$Revision: 2781 $

Constructor Summary
FixedLengthEndpoint(String uri, Resource resource)
           
 
Method Summary
 Consumer createConsumer(Processor processor)
           
 Exchange createExchange(net.sf.flatpack.DataSet dataSet, int counter)
           
 net.sf.flatpack.Parser createParser(Exchange exchange)
           
protected  net.sf.flatpack.Parser createParser(Resource resource, Reader bodyReader)
           
 Producer createProducer()
           
 LoadBalancer getLoadBalancer()
           
 net.sf.flatpack.ParserFactory getParserFactory()
           
 Resource getResource()
           
 boolean isSingleton()
           
 boolean isSplitRows()
           
 void processDataSet(net.sf.flatpack.DataSet dataSet, int counter)
           
 void setLoadBalancer(LoadBalancer loadBalancer)
           
 void setParserFactory(net.sf.flatpack.ParserFactory parserFactory)
           
 void setSplitRows(boolean splitRows)
           
 
Methods inherited from class org.apache.camel.impl.ScheduledPollEndpoint
configureConsumer, configureProperties, getConsumerProperties, setConsumerProperties
 
Methods inherited from class org.apache.camel.impl.DefaultEndpoint
createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, getId, hashCode, isLenientProperties, isSynchronous, sanitizeUri, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setSynchronous, start, stop, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FixedLengthEndpoint

public FixedLengthEndpoint(String uri,
                           Resource resource)
Method Detail

isSingleton

public boolean isSingleton()

createProducer

public Producer createProducer()
                        throws Exception
Throws:
Exception

createConsumer

public Consumer createConsumer(Processor processor)
                        throws Exception
Specified by:
createConsumer in interface Endpoint
Overrides:
createConsumer in class DefaultPollingEndpoint
Throws:
Exception

processDataSet

public void processDataSet(net.sf.flatpack.DataSet dataSet,
                           int counter)
                    throws Exception
Throws:
Exception

createExchange

public Exchange createExchange(net.sf.flatpack.DataSet dataSet,
                               int counter)

createParser

public net.sf.flatpack.Parser createParser(Exchange exchange)
                                    throws InvalidPayloadException,
                                           IOException
Throws:
InvalidPayloadException
IOException

createParser

protected net.sf.flatpack.Parser createParser(Resource resource,
                                              Reader bodyReader)
                                       throws IOException
Throws:
IOException

getResource

public Resource getResource()

getParserFactory

public net.sf.flatpack.ParserFactory getParserFactory()

setParserFactory

public void setParserFactory(net.sf.flatpack.ParserFactory parserFactory)

getLoadBalancer

public LoadBalancer getLoadBalancer()

setLoadBalancer

public void setLoadBalancer(LoadBalancer loadBalancer)

isSplitRows

public boolean isSplitRows()

setSplitRows

public void setSplitRows(boolean splitRows)


Apache CAMEL