public abstract class Channel<O> extends Object
Constructor and Description |
---|
Channel() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
consume(CodeReader code,
O output)
Tries to consume the character stream at the current reading cursor position (provided by the
CodeReader ). |
public abstract boolean consume(CodeReader code, O 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–2017 SonarSource. All rights reserved.