xmlBlaster 2.2.0 API

org.xmlBlaster.client.protocol.http.common
Class BufferedInputStreamMicro

java.lang.Object
  extended by org.xmlBlaster.client.protocol.http.common.BufferedInputStreamMicro
All Implemented Interfaces:
I_ObjectStream

public class BufferedInputStreamMicro
extends java.lang.Object
implements I_ObjectStream

BufferedInputStreamMicro

Author:
Michele Laghi

Field Summary
private  java.io.InputStream in
           
private  java.lang.String rest
          The buffer holding the rest of the data coming after a previous EOL
 
Fields inherited from interface org.xmlBlaster.client.protocol.http.common.I_ObjectStream
HASHTABLE, HASHTABLE_ARR, STRING, VECTOR
 
Constructor Summary
BufferedInputStreamMicro(java.io.InputStream inStream)
           
 
Method Summary
private  java.lang.String getLineFromBuffer()
           
 java.lang.String readLine()
           
private  java.lang.String readNewData()
           
private  java.lang.String readNewDataUntilEolOrEof()
          It reads until at least one EOL or an EOF is reached.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

in

private java.io.InputStream in

rest

private java.lang.String rest
The buffer holding the rest of the data coming after a previous EOL

Constructor Detail

BufferedInputStreamMicro

public BufferedInputStreamMicro(java.io.InputStream inStream)
                         throws java.io.IOException
Throws:
java.io.IOException
Method Detail

readNewData

private final java.lang.String readNewData()
                                    throws java.io.IOException
Returns:
null if the stream is closed (finished to read data), a String otherwise. It will always wait until there is data available.
Throws:
java.io.IOException

readNewDataUntilEolOrEof

private final java.lang.String readNewDataUntilEolOrEof()
                                                 throws java.io.IOException
It reads until at least one EOL or an EOF is reached.

Returns:
Throws:
java.io.IOException

getLineFromBuffer

private final java.lang.String getLineFromBuffer()

readLine

public java.lang.String readLine()
                          throws java.io.IOException
Throws:
java.io.IOException

xmlBlaster 2.2.0 API

Copyright © 1999-2014 The xmlBlaster.org contributers.