com.h3c.util.pkt

## Class Sctp.Chunk

- java.lang.Object
- - com.h3c.util.pkt.Sctp.Chunk

- Enclosing class:
    Sctp

      public static class Sctp.Chunk
      extends Object

  Chunk data store (immutable).

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `Sctp.Chunk.Type` Chunk types.

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `Sctp.Chunk(Sctp.Chunk.Type type, int flags, byte[] data)` Constructor to create a new chunk.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `byte[]` | `data()` Returns a copy of the chunk data bytes.
    `int` | `flags()` Returns the chunk flags.
    `String` | `toString()`
    `Sctp.Chunk.Type` | `type()` Returns the chunk type.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### Sctp.Chunk

          public Sctp.Chunk(Sctp.Chunk.Type type,
                    int flags,
                    byte[] data)

      Constructor to create a new chunk.
      Parameters:
        `type` - chunk type
        `flags` - chunk flags
        `data` - chunk payload data

  - ### Method Detail

    - #### type

          public Sctp.Chunk.Type type()

      Returns the chunk type.
      Returns:
        the chunk type

    - #### flags

          public int flags()

      Returns the chunk flags.
      Returns:
        the chunk flags

    - #### data

          public byte[] data()

      Returns a copy of the chunk data bytes.
      Returns:
        the chunk data

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2014. All Rights Reserved.