com.buildforge.services.common.io
Class BufferedConnectionReader
java.lang.Object
java.io.Reader
com.buildforge.services.common.io.BufferedConnectionReader
- All Implemented Interfaces:
- java.io.Closeable, java.lang.Readable
public class BufferedConnectionReader
- extends java.io.Reader
Wraps the IBufferedConnection in a Reader so that protocol
implementations which need one can access the data stream. One
example of this is the Protocol.XML
, which needs the data
stream to be wrapped in a Reader
so that it can be
used as an InputSource
for the SAXParser
.
Method Summary |
void |
close()
This method has no effect for instances of this class. |
int |
read()
|
int |
read(char[] cbuf,
int off,
int len)
|
int |
read(java.nio.CharBuffer target)
|
boolean |
ready()
|
Methods inherited from class java.io.Reader |
mark, markSupported, read, reset, skip |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BufferedConnectionReader
public BufferedConnectionReader(IBufferedConnection buffer)
close
public void close()
- This method has no effect for instances of this class.
- Specified by:
close
in interface java.io.Closeable
- Specified by:
close
in class java.io.Reader
read
public int read()
throws java.io.IOException
- Overrides:
read
in class java.io.Reader
- Throws:
java.io.IOException
read
public int read(char[] cbuf,
int off,
int len)
throws java.io.IOException
- Specified by:
read
in class java.io.Reader
- Throws:
java.io.IOException
read
public int read(java.nio.CharBuffer target)
throws java.io.IOException
- Specified by:
read
in interface java.lang.Readable
- Overrides:
read
in class java.io.Reader
- Throws:
java.io.IOException
ready
public boolean ready()
- Overrides:
ready
in class java.io.Reader