org.apache.camel.component.stream
Class StreamConsumer
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.impl.DefaultConsumer
org.apache.camel.component.stream.StreamConsumer
- All Implemented Interfaces:
- Runnable, Consumer, Service
public class StreamConsumer
- extends DefaultConsumer
- implements Runnable
Consumer that can read from streams
| Methods inherited from class org.apache.camel.impl.ServiceSupport |
addChildService, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, removeChildService, start, stop |
StreamConsumer
public StreamConsumer(StreamEndpoint endpoint,
Processor processor,
String uri)
throws Exception
- Throws:
Exception
doStart
protected void doStart()
throws Exception
- Overrides:
doStart in class DefaultConsumer
- Throws:
Exception
doStop
public void doStop()
throws Exception
- Overrides:
doStop in class DefaultConsumer
- Throws:
Exception
run
public void run()
- Specified by:
run in interface Runnable
processLine
protected void processLine(Object line)
throws Exception
- Strategy method for processing the line
- Throws:
Exception
doPromptMessage
protected void doPromptMessage()
- Strategy method for prompting the prompt message
Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.