org.apache.camel.component.flatpack
Class FixedLengthEndpoint

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      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:
org.apache.camel.CamelContextAware, org.apache.camel.Endpoint, org.apache.camel.IsSingleton, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.HasId
Direct Known Subclasses:
DelimitedEndpoint

public class FixedLengthEndpoint
extends org.apache.camel.impl.DefaultPollingEndpoint

A Flatpack Endpoint for working with fixed width and delimited files

Version:
$Revision$

Constructor Summary
FixedLengthEndpoint(String uri, org.springframework.core.io.Resource resource)
           
 
Method Summary
 org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
           
 org.apache.camel.Exchange createExchange(net.sf.flatpack.DataSet dataSet, int counter)
           
 net.sf.flatpack.Parser createParser(org.apache.camel.Exchange exchange)
           
protected  net.sf.flatpack.Parser createParser(org.springframework.core.io.Resource resource, Reader bodyReader)
           
 org.apache.camel.Producer createProducer()
           
 org.apache.camel.processor.loadbalancer.LoadBalancer getLoadBalancer()
           
 net.sf.flatpack.ParserFactory getParserFactory()
           
 org.springframework.core.io.Resource getResource()
           
 boolean isSingleton()
           
 boolean isSplitRows()
           
 void processDataSet(net.sf.flatpack.DataSet dataSet, int counter)
           
 void setLoadBalancer(org.apache.camel.processor.loadbalancer.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, doStart, doStop, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, getId, hashCode, isLenientProperties, isSynchronous, sanitizeUri, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setSynchronous, toString
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
addChildService, doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, start, stop, suspend
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Constructor Detail

FixedLengthEndpoint

public FixedLengthEndpoint(String uri,
                           org.springframework.core.io.Resource resource)
Method Detail

isSingleton

public boolean isSingleton()

createProducer

public org.apache.camel.Producer createProducer()
                                         throws Exception
Throws:
Exception

createConsumer

public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
                                         throws Exception
Specified by:
createConsumer in interface org.apache.camel.Endpoint
Overrides:
createConsumer in class org.apache.camel.impl.DefaultPollingEndpoint
Throws:
Exception

processDataSet

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

createExchange

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

createParser

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

createParser

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

getResource

public org.springframework.core.io.Resource getResource()

getParserFactory

public net.sf.flatpack.ParserFactory getParserFactory()

setParserFactory

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

getLoadBalancer

public org.apache.camel.processor.loadbalancer.LoadBalancer getLoadBalancer()

setLoadBalancer

public void setLoadBalancer(org.apache.camel.processor.loadbalancer.LoadBalancer loadBalancer)

isSplitRows

public boolean isSplitRows()

setSplitRows

public void setSplitRows(boolean splitRows)


Apache CAMEL