com.businessobjects.samples.pojo
Class POJOReaderStream
java.lang.Object
|
+--java.io.InputStream
|
+--com.businessobjects.samples.pojo.POJOReaderStream
- public class POJOReaderStream
- extends java.io.InputStream
Presents a stream view of a reader using the specified encoding.
Allows you to convert a character stream into a byte stream on demand,
instead of reading the entire character stream first.
Useful for converting very large character streams, notably when working
with Clob instances.
|
Constructor Summary |
POJOReaderStream(java.io.Reader reader,
java.lang.String encoding)
|
|
Method Summary |
void |
close()
Closes the ReaderStream. |
int |
read()
Reads the ReaderStream and returns the integer value of the current character. |
| Methods inherited from class java.io.InputStream |
available, mark, markSupported, read, read, reset, skip |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
POJOReaderStream
public POJOReaderStream(java.io.Reader reader,
java.lang.String encoding)
throws java.io.UnsupportedEncodingException
close
public void close()
throws java.io.IOException
- Closes the ReaderStream.
- Overrides:
close in class java.io.InputStream
- Throws:
java.io.IOException
read
public int read()
throws java.io.IOException
- Reads the ReaderStream and returns the integer value of the current character.
- Specified by:
read in class java.io.InputStream
- Returns:
- An int representing the value of the current character.
- Throws:
java.io.IOException