org.apache.camel.component.flatpack
Class FixedLengthEndpoint
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.impl.DefaultEndpoint
org.apache.camel.impl.ScheduledPollEndpoint
org.apache.camel.impl.DefaultPollingEndpoint
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$
| 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 interface org.apache.camel.Service |
start, stop |
FixedLengthEndpoint
public FixedLengthEndpoint(String uri,
org.springframework.core.io.Resource resource)
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