java.lang.Object
org.glassfish.grizzly.websockets.ParseResult
- All Implemented Interfaces:
org.glassfish.grizzly.Cacheable
DataFrame parse result.- Author:
- Alexey Stashok
-
Method Summary
Modifier and TypeMethodDescriptionstatic ParseResultcreate(boolean isComplete, org.glassfish.grizzly.Buffer remainderBuffer) Create a ParseResult object.org.glassfish.grizzly.BufferGet the parsing remainderBuffer.booleanReturns true, if parsing was completed, or false if more data is expected.voidrecycle()Recycle the object.
-
Method Details
-
create
Create a ParseResult object.- Parameters:
isComplete- was parsing completed?remainderBuffer- the remainder.- Returns:
- ParseResult
-
getRemainder
public org.glassfish.grizzly.Buffer getRemainder()Get the parsing remainderBuffer. May not be null only in case, when parsing was completed, but some data is still ready for parsing.- Returns:
- the parsing remainder
Buffer. May not be null only in case, when parsing was completed, but some data is still ready for parsing.
-
isComplete
public boolean isComplete()Returns true, if parsing was completed, or false if more data is expected.- Returns:
- true, if parsing was completed, or false if more data is expected.
-
recycle
public void recycle()Recycle the object.- Specified by:
recyclein interfaceorg.glassfish.grizzly.Cacheable
-