Class WhitespaceSkipper
- java.lang.Object
-
- com.couchbase.client.core.endpoint.util.WhitespaceSkipper
-
- All Implemented Interfaces:
ByteBufProcessor
public class WhitespaceSkipper extends Object implements ByteBufProcessor
ThisByteBufProcessor
loops while it encounters whitespace or new lines (' ', '\t', '\r' and '\n').- Since:
- 1.1
- Author:
- Simon Baslé
-
-
Field Summary
-
Fields inherited from interface io.netty.buffer.ByteBufProcessor
FIND_CR, FIND_CRLF, FIND_LF, FIND_LINEAR_WHITESPACE, FIND_NON_CR, FIND_NON_CRLF, FIND_NON_LF, FIND_NON_LINEAR_WHITESPACE, FIND_NON_NUL, FIND_NUL
-
-
Constructor Summary
Constructors Constructor Description WhitespaceSkipper()
-
-
-
Method Detail
-
process
public boolean process(byte current) throws Exception
- Specified by:
process
in interfaceByteBufProcessor
- Throws:
Exception
-
-