public abstract class Channel<OUTPUT> extends Object
| Constructor and Description |
|---|
Channel() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
consume(CodeReader code,
OUTPUT output)
Tries to consume the character stream at the current reading cursor position (provided by the
CodeReader). |
public Channel()
public abstract boolean consume(CodeReader code, OUTPUT output)
CodeReader). If
the character stream is consumed the method must return true and the OUTPUT object can be fed.code - the handle on the input character streamoutput - the OUTPUT that can be optionally fed by the ChannelCopyright © 2009-2012 SonarSource. All Rights Reserved.