protected static class AtmospherePushConnection.FragmentedMessage extends Object implements Serializable
| Constructor and Description |
|---|
FragmentedMessage(Reader reader)
Creates a message by reading from the given reader.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
append(Reader reader)
Appends all the data from the given Reader to this message and
returns whether the message was completed.
|
Reader |
getReader() |
public FragmentedMessage(Reader reader) throws IOException
Immediately reads the length of the message (up until ) from the reader.
reader - the reader to read the message fromIOException - if an exception occurred while reading from the reader or
if unexpected data was readpublic boolean append(Reader reader) throws IOException
reader - The Reader from which to read.IOException - if an IO error occurredpublic Reader getReader()
Copyright © 2025. All rights reserved.