Class WhitespaceSkipper
- java.lang.Object
-
- com.couchbase.client.core.endpoint.util.WhitespaceSkipper
-
- All Implemented Interfaces:
ByteBufProcessor
,ByteProcessor
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é
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.netty.util.ByteProcessor
ByteProcessor.IndexNotOfProcessor, ByteProcessor.IndexOfProcessor
-
-
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
-
Fields inherited from interface io.netty.util.ByteProcessor
FIND_ASCII_SPACE, FIND_COMMA, FIND_SEMI_COLON
-
-
Constructor Summary
Constructors Constructor Description WhitespaceSkipper()
-
-
-
Method Detail
-
process
public boolean process(byte current) throws Exception
- Specified by:
process
in interfaceByteProcessor
- Throws:
Exception
-
-