java.lang.Object
org.glassfish.grizzly.websockets.ParseResult
All Implemented Interfaces:
org.glassfish.grizzly.Cacheable

public class ParseResult extends Object implements org.glassfish.grizzly.Cacheable
DataFrame parse result.
Author:
Alexey Stashok
  • Method Details

    • create

      public static ParseResult create(boolean isComplete, org.glassfish.grizzly.Buffer remainderBuffer)
      Create a ParseResult object.
      Parameters:
      isComplete - was parsing completed?
      remainderBuffer - the remainder.
      Returns:
      ParseResult
    • getRemainder

      public org.glassfish.grizzly.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:
      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:
      recycle in interface org.glassfish.grizzly.Cacheable