com.caucho.hessian.io
Class Hessian2StreamingInput.StreamingInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by com.caucho.hessian.io.Hessian2StreamingInput.StreamingInputStream
All Implemented Interfaces:
java.io.Closeable
Enclosing class:
Hessian2StreamingInput

static class Hessian2StreamingInput.StreamingInputStream
extends java.io.InputStream


Field Summary
private  java.io.InputStream _is
           
private  boolean _isPacketEnd
           
private  int _length
           
 
Constructor Summary
Hessian2StreamingInput.StreamingInputStream(java.io.InputStream is)
           
 
Method Summary
 void endPacket()
           
 boolean isDataAvailable()
           
 int read()
           
 int read(byte[] buffer, int offset, int length)
           
private  int readChunkLength(java.io.InputStream is)
           
 boolean startPacket()
           
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_is

private java.io.InputStream _is

_length

private int _length

_isPacketEnd

private boolean _isPacketEnd
Constructor Detail

Hessian2StreamingInput.StreamingInputStream

Hessian2StreamingInput.StreamingInputStream(java.io.InputStream is)
Method Detail

isDataAvailable

public boolean isDataAvailable()

startPacket

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

endPacket

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

read

public int read()
         throws java.io.IOException
Specified by:
read in class java.io.InputStream
Throws:
java.io.IOException

read

public int read(byte[] buffer,
                int offset,
                int length)
         throws java.io.IOException
Overrides:
read in class java.io.InputStream
Throws:
java.io.IOException

readChunkLength

private int readChunkLength(java.io.InputStream is)
                     throws java.io.IOException
Throws:
java.io.IOException


Copyright 2003-2011. All Rights Reserved.