Package io.rong.message

## Class StreamMessage

- All Implemented Interfaces:

      public class StreamMessage

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `public String` | `content` |
    `public boolean` | `isComplete` |
    `public boolean` | `isSync` |
    `public int` | `completeReason` |
    `public int` | `stopReason` |
    `public String` | `type` |
    `public ReferenceInfo` | `referMsg` |
    `public final static Creator<StreamMessage>` | `CREATOR` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `StreamMessage(String content, boolean isComplete, boolean isSync, int completeReason, int stopReason)` |
    `StreamMessage(Array<byte> data)` | 将数据解码
    `StreamMessage(Parcel in)` |

  - ### Enum Constant Summary

    Enum Constants
    Enum Constant | Description
    --- | ---

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `String` | `getContent()` |
    `void` | `setContent(String content)` |
    `boolean` | `isComplete()` |
    `void` | `setComplete(boolean complete)` |
    `boolean` | `isSync()` |
    `void` | `setSync(boolean sync)` |
    `int` | `getCompleteReason()` |
    `void` | `setCompleteReason(int completeReason)` |
    `int` | `getStopReason()` |
    `void` | `setStopReason(int stopReason)` |
    `String` | `getType()` |
    `void` | `setType(String type)` |
    `ReferenceInfo` | `getReferMsg()` |
    `void` | `setReferMsg(ReferenceInfo referMsg)` |
    `Array<byte>` | `encode()` |
    `int` | `describeContents()` |
    `void` | `writeToParcel(Parcel dest, int flags)` |

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

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

- - ### Constructor Detail

    - #### StreamMessage

          StreamMessage(String content, boolean isComplete, boolean isSync, int completeReason, int stopReason)

    - #### StreamMessage

          StreamMessage(Array<byte> data)

      将数据解码
      Parameters:
        `data` - byte 数组

    - #### StreamMessage

          StreamMessage(Parcel in)

  - ### Method Detail

    - #### getContent

           String getContent()

    - #### setContent

           void setContent(String content)

    - #### isComplete

           boolean isComplete()

    - #### setComplete

           void setComplete(boolean complete)

    - #### isSync

           boolean isSync()

    - #### setSync

           void setSync(boolean sync)

    - #### getCompleteReason

           int getCompleteReason()

    - #### setCompleteReason

           void setCompleteReason(int completeReason)

    - #### getStopReason

           int getStopReason()

    - #### setStopReason

           void setStopReason(int stopReason)

    - #### getType

           String getType()

    - #### setType

           void setType(String type)

    - #### getReferMsg

           ReferenceInfo getReferMsg()

    - #### setReferMsg

           void setReferMsg(ReferenceInfo referMsg)

    - #### encode

           Array<byte> encode()

    - #### describeContents

           int describeContents()

    - #### writeToParcel

           void writeToParcel(Parcel dest, int flags)