Package com.vaadin.server.communication
Class AtmospherePushConnection.FragmentedMessage
- java.lang.Object
-
- com.vaadin.server.communication.AtmospherePushConnection.FragmentedMessage
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- AtmospherePushConnection
protected static class AtmospherePushConnection.FragmentedMessage extends Object implements Serializable
Represents a message that can arrive as multiple fragments.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FragmentedMessage(Reader reader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Constructor Detail
-
FragmentedMessage
public FragmentedMessage(Reader reader) throws IOException
- Throws:
IOException
-
-
Method Detail
-
append
public boolean append(Reader reader) throws IOException
Appends all the data from the given Reader to this message and returns whether the message was completed.- Parameters:
reader
- The Reader from which to read.- Returns:
- true if this message is complete, false otherwise.
- Throws:
IOException
-
getReader
public Reader getReader()
-
-