public class ChannelDispatcher<O> extends Channel<O>
| Modifier and Type | Class and Description |
|---|---|
static class |
ChannelDispatcher.Builder |
| Constructor and Description |
|---|
ChannelDispatcher(Channel... channels)
Deprecated.
in version 2.9. Please use the builder() method
|
ChannelDispatcher(List<Channel> channels)
Deprecated.
in version 2.9. Please use the builder() method
|
ChannelDispatcher(List<Channel> channels,
boolean failIfNoChannelToConsumeOneCharacter)
Deprecated.
in version 2.9. Please use the builder() method
|
| Modifier and Type | Method and Description |
|---|---|
static ChannelDispatcher.Builder |
builder()
Get a Builder instance to build a new ChannelDispatcher
|
boolean |
consume(CodeReader code,
O output)
Tries to consume the character stream at the current reading cursor position (provided by the
CodeReader). |
@Deprecated public ChannelDispatcher(List<Channel> channels)
@Deprecated public ChannelDispatcher(Channel... channels)
@Deprecated public ChannelDispatcher(List<Channel> channels, boolean failIfNoChannelToConsumeOneCharacter)
public boolean consume(CodeReader code, O output)
ChannelCodeReader). If
the character stream is consumed the method must return true and the OUTPUT object can be fed.public static ChannelDispatcher.Builder builder()
Copyright © 2009-2014 SonarSource. All Rights Reserved.