org.eclipse.jetty.websocket

## Interface WebSocketParser

- All Known Implementing Classes:
    WebSocketParserD00, WebSocketParserD06, WebSocketParserD08, WebSocketParserRFC6455

      public interface WebSocketParser

  Parser the WebSocket protocol.

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Interface and Description
    --- | ---
    `static interface` | `WebSocketParser.FrameHandler`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `fill(Buffer buffer)`
    `Buffer` | `getBuffer()`
    `boolean` | `isBufferEmpty()`
    `int` | `parseNext()`

- - ### Method Detail

    - #### getBuffer

          Buffer getBuffer()

    - #### parseNext

          int parseNext()

      Returns:
        an indication of progress, normally bytes filled plus events parsed, or -1 for EOF

    - #### isBufferEmpty

          boolean isBufferEmpty()

    - #### fill

          void fill(Buffer buffer)

Copyright © 1995-2016 Mort Bay Consulting. All Rights Reserved.