Class WhitespaceSkipper
java.lang.Object
com.couchbase.client.core.endpoint.util.WhitespaceSkipper
- All Implemented Interfaces:
ByteBufProcessor
,ByteProcessor
public class WhitespaceSkipper extends Object implements ByteBufProcessor
This
ByteBufProcessor
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 Summary
Modifier and Type Method Description boolean
process(byte current)
-
Constructor Details
-
WhitespaceSkipper
public WhitespaceSkipper()
-
-
Method Details
-
process
- Specified by:
process
in interfaceByteProcessor
- Throws:
Exception
-