GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Overview
  • Use
  • Tree
  • Deprecated
  • Index
  • Search
  • Help
  • io.netty.handler.codec.http.websocketx
  • BinaryWebSocketFrame

This view

  • Original page
  • New address

GeezerVison is showing netty.io — BinaryWebSocketFrame (Netty API Reference (4.1.141.Final))

Class BinaryWebSocketFrame

java.lang.Object
io.netty.buffer.DefaultByteBufHolder
io.netty.handler.codec.http.websocketx.WebSocketFrame
io.netty.handler.codec.http.websocketx.BinaryWebSocketFrame
All Implemented Interfaces:
ByteBufHolder, ReferenceCounted

public class BinaryWebSocketFrame extends WebSocketFrame
Web Socket frame containing binary data.
  • Constructor Summary

    Constructors
    Constructor
    Description
    BinaryWebSocketFrame()
    Creates a new empty binary frame.
    BinaryWebSocketFrame(boolean finalFragment, int rsv, ByteBuf binaryData)
    Creates a new binary frame with the specified binary data and the final fragment flag.
    BinaryWebSocketFrame(ByteBuf binaryData)
    Creates a new binary frame with the specified binary data.
  • Method Summary

    Modifier and Type
    Method
    Description
    BinaryWebSocketFrame
    copy()
    Creates a deep copy of this ByteBufHolder.
    BinaryWebSocketFrame
    duplicate()
    Duplicates this ByteBufHolder.
    BinaryWebSocketFrame
    replace(ByteBuf content)
    Returns a new ByteBufHolder which contains the specified content.
    BinaryWebSocketFrame
    retain()
    Increases the reference count by 1.
    BinaryWebSocketFrame
    retain(int increment)
    Increases the reference count by the specified increment.
    BinaryWebSocketFrame
    retainedDuplicate()
    Duplicates this ByteBufHolder.
    BinaryWebSocketFrame
    touch()
    Records the current access location of this object for debugging purposes.
    BinaryWebSocketFrame
    touch(Object hint)
    Records the current access location of this object with an additional arbitrary information for debugging purposes.

    Methods inherited from class WebSocketFrame

    isFinalFragment, rsv, toString
    Modifier and Type
    Method
    Description
    boolean
    isFinalFragment()
    Flag to indicate if this frame is the final fragment in a message.
    int
    rsv()
    Bits used for extensions to the standard.
    String
    toString()
     

    Methods inherited from class DefaultByteBufHolder

    content, contentToString, equals, hashCode, refCnt, release, release
    Modifier and Type
    Method
    Description
    ByteBuf
    content()
    Return the data which is held by this ByteBufHolder.
    protected final String
    contentToString()
    Return ByteBuf.toString() without checking the reference count first.
    boolean
    equals(Object o)
    This implementation of the equals operation is restricted to work only with instances of the same class.
    int
    hashCode()
     
    int
    refCnt()
    Returns the reference count of this object.
    boolean
    release()
    Decreases the reference count by 1 and deallocates this object if the reference count reaches at 0.
    boolean
    release(int decrement)
    Decreases the reference count by the specified decrement and deallocates this object if the reference count reaches at 0.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • BinaryWebSocketFrame

      public BinaryWebSocketFrame()
      Creates a new empty binary frame.
    • BinaryWebSocketFrame

      public BinaryWebSocketFrame(ByteBuf binaryData)
      Creates a new binary frame with the specified binary data. The final fragment flag is set to true.
      Parameters:
      binaryData - the content of the frame.
    • BinaryWebSocketFrame

      public BinaryWebSocketFrame(boolean finalFragment, int rsv, ByteBuf binaryData)
      Creates a new binary frame with the specified binary data and the final fragment flag.
      Parameters:
      finalFragment - flag indicating if this frame is the final fragment
      rsv - reserved bits used for protocol extensions
      binaryData - the content of the frame.
  • Method Details

    • copy

      public BinaryWebSocketFrame copy()
      Description copied from class: DefaultByteBufHolder
      Creates a deep copy of this ByteBufHolder.

      This method calls replace(content().copy()) by default.

      Specified by:
      copy in interface ByteBufHolder
      Overrides:
      copy in class WebSocketFrame
    • duplicate

      public BinaryWebSocketFrame duplicate()
      Description copied from class: DefaultByteBufHolder
      Duplicates this ByteBufHolder. Be aware that this will not automatically call ByteBufHolder.retain().

      This method calls replace(content().duplicate()) by default.

      Specified by:
      duplicate in interface ByteBufHolder
      Overrides:
      duplicate in class WebSocketFrame
    • retainedDuplicate

      public BinaryWebSocketFrame retainedDuplicate()
      Description copied from class: DefaultByteBufHolder
      Duplicates this ByteBufHolder. This method returns a retained duplicate unlike ByteBufHolder.duplicate().

      This method calls replace(content().retainedDuplicate()) by default.

      Specified by:
      retainedDuplicate in interface ByteBufHolder
      Overrides:
      retainedDuplicate in class WebSocketFrame
      See Also:
      • ByteBuf.retainedDuplicate()
    • replace

      public BinaryWebSocketFrame replace(ByteBuf content)
      Description copied from class: DefaultByteBufHolder
      Returns a new ByteBufHolder which contains the specified content.

      Override this method to return a new instance of this object whose content is set to the specified content. The default implementation of DefaultByteBufHolder.copy(), DefaultByteBufHolder.duplicate() and DefaultByteBufHolder.retainedDuplicate() invokes this method to create a copy.

      Specified by:
      replace in interface ByteBufHolder
      Specified by:
      replace in class WebSocketFrame
    • retain

      public BinaryWebSocketFrame retain()
      Description copied from interface: ReferenceCounted
      Increases the reference count by 1.
      Specified by:
      retain in interface ByteBufHolder
      Specified by:
      retain in interface ReferenceCounted
      Overrides:
      retain in class WebSocketFrame
    • retain

      public BinaryWebSocketFrame retain(int increment)
      Description copied from interface: ReferenceCounted
      Increases the reference count by the specified increment.
      Specified by:
      retain in interface ByteBufHolder
      Specified by:
      retain in interface ReferenceCounted
      Overrides:
      retain in class WebSocketFrame
    • touch

      public BinaryWebSocketFrame touch()
      Description copied from interface: ReferenceCounted
      Records the current access location of this object for debugging purposes. If this object is determined to be leaked, the information recorded by this operation will be provided to you via ResourceLeakDetector. This method is a shortcut to touch(null).
      Specified by:
      touch in interface ByteBufHolder
      Specified by:
      touch in interface ReferenceCounted
      Overrides:
      touch in class WebSocketFrame
    • touch

      public BinaryWebSocketFrame touch(Object hint)
      Description copied from interface: ReferenceCounted
      Records the current access location of this object with an additional arbitrary information for debugging purposes. If this object is determined to be leaked, the information recorded by this operation will be provided to you via ResourceLeakDetector.
      Specified by:
      touch in interface ByteBufHolder
      Specified by:
      touch in interface ReferenceCounted
      Overrides:
      touch in class WebSocketFrame
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.