org.xmlBlaster.client.protocol.http.common
Class BufferedInputStreamMicro
java.lang.Object
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
BufferedInputStreamMicro
public BufferedInputStreamMicro(java.io.InputStream inStream)
throws java.io.IOException
- Throws:
java.io.IOException
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
Copyright © 1999-2014 The xmlBlaster.org contributers.