com.vaadin.server.communication
Class AtmospherePushConnection.FragmentedMessage

java.lang.Object
  extended by com.vaadin.server.communication.AtmospherePushConnection.FragmentedMessage
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
AtmospherePushConnection

protected static class AtmospherePushConnection.FragmentedMessage
extends java.lang.Object
implements java.io.Serializable

Represents a message that can arrive as multiple fragments.

See Also:
Serialized Form

Constructor Summary
AtmospherePushConnection.FragmentedMessage(java.io.Reader reader)
           
 
Method Summary
 boolean append(java.io.Reader reader)
          Appends all the data from the given Reader to this message and returns whether the message was completed.
 java.io.Reader getReader()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AtmospherePushConnection.FragmentedMessage

public AtmospherePushConnection.FragmentedMessage(java.io.Reader reader)
                                           throws java.io.IOException
Throws:
java.io.IOException
Method Detail

append

public boolean append(java.io.Reader reader)
               throws java.io.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:
java.io.IOException

getReader

public java.io.Reader getReader()


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.