com.caucho.hessian.io
Class Hessian2StreamingInput

java.lang.Object
  extended by com.caucho.hessian.io.Hessian2StreamingInput

public class Hessian2StreamingInput
extends java.lang.Object

Input stream for Hessian 2 streaming requests using WebSocket.


Nested Class Summary
(package private) static class Hessian2StreamingInput.StreamingInputStream
           
 
Field Summary
private  Hessian2Input _in
           
private  Hessian2StreamingInput.StreamingInputStream _is
           
private static java.util.logging.Logger log
           
 
Constructor Summary
Hessian2StreamingInput(java.io.InputStream is)
          Creates a new Hessian input stream, initialized with an underlying input stream.
 
Method Summary
 void close()
          Close the output.
 void endPacket()
           
 Hessian2Input getHessianInput()
           
 boolean isDataAvailable()
           
 java.lang.Object readObject()
          Read the next object
 void setSerializerFactory(SerializerFactory factory)
           
 Hessian2Input startPacket()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final java.util.logging.Logger log

_is

private Hessian2StreamingInput.StreamingInputStream _is

_in

private Hessian2Input _in
Constructor Detail

Hessian2StreamingInput

public Hessian2StreamingInput(java.io.InputStream is)
Creates a new Hessian input stream, initialized with an underlying input stream.

Parameters:
is - the underlying output stream.
Method Detail

setSerializerFactory

public void setSerializerFactory(SerializerFactory factory)

isDataAvailable

public boolean isDataAvailable()

startPacket

public Hessian2Input startPacket()
                          throws java.io.IOException
Throws:
java.io.IOException

endPacket

public void endPacket()
               throws java.io.IOException
Throws:
java.io.IOException

getHessianInput

public Hessian2Input getHessianInput()

readObject

public java.lang.Object readObject()
                            throws java.io.IOException
Read the next object

Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Close the output.

Throws:
java.io.IOException


Copyright 2003-2011. All Rights Reserved.