Top Description Fields Constructors Methods
org.glassfish.grizzly.websockets

public Class ParseResult

extends Object
implements Cacheable
Class Inheritance
All Implemented Interfaces
org.glassfish.grizzly.Cacheable
Imports
org.glassfish.grizzly.Buffer, .Cacheable, .ThreadCache

DataFrame parse result.
Author
Alexey Stashok

Field Summary

Modifier and TypeField and Description
private static final ThreadCache.CachedTypeIndex<ParseResult>
private boolean
private Buffer

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ParseResult

Returns:

ParseResult
create
(boolean
was parsing completed?
isComplete
,
Buffer
the remainder.
remainderBuffer
)

Create a ParseResult object.

public Buffer

Returns:

the parsing remainder Buffer. May not be null only in case, when parsing was completed, but some data is still ready for parsing.
getRemainder
()

Get the parsing remainder Buffer.

public boolean

Returns:

true, if parsing was completed, or false if more data is expected.
isComplete
()

Returns true, if parsing was completed, or false if more data is expected.

public void
recycle()

Implements org.glassfish.grizzly.Cacheable.recycle.

Recycle the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CACHE_IDXback to summary
private static final ThreadCache.CachedTypeIndex<ParseResult> CACHE_IDX
isCompleteback to summary
private boolean isComplete
remainderback to summary
private Buffer remainder

Constructor Detail

ParseResultback to summary
private ParseResult()

Method Detail

createback to summary
public static ParseResult create(boolean isComplete, Buffer remainderBuffer)

Create a ParseResult object.

Parameters
isComplete:boolean

was parsing completed?

remainderBuffer:Buffer

the remainder.

Returns:ParseResult

ParseResult

getRemainderback to summary
public Buffer getRemainder()

Get the parsing remainder Buffer. May not be null only in case, when parsing was completed, but some data is still ready for parsing.

Returns:Buffer

the parsing remainder Buffer. May not be null only in case, when parsing was completed, but some data is still ready for parsing.

isCompleteback to summary
public boolean isComplete()

Returns true, if parsing was completed, or false if more data is expected.

Returns:boolean

true, if parsing was completed, or false if more data is expected.

recycleback to summary
public void recycle()

Implements org.glassfish.grizzly.Cacheable.recycle.

Recycle the object.

Annotations
@Override