com.jivesoftware.forum.nntp.spi
Class StringIteratorInputStream
java.lang.Object
java.io.InputStream
com.jivesoftware.forum.nntp.spi.StringIteratorInputStream
- All Implemented Interfaces:
- java.io.Closeable
public class StringIteratorInputStream
- extends java.io.InputStream
Converts an iterator of Strings into a raw data input stream.
The iterator must convert the encoded string data into
the raw binary data using base64 or other encoding as specified
in the constructor.
Method Summary |
int |
read()
|
Methods inherited from class java.io.InputStream |
available, close, mark, markSupported, read, read, reset, skip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringIteratorInputStream
public StringIteratorInputStream(java.util.Iterator itr)
- Create an input stream wrapping the given iterator.
- Parameters:
itr
- The iterator of String objects to wrap
StringIteratorInputStream
public StringIteratorInputStream(java.util.Iterator itr,
java.lang.String delim)
- Create an input stream wrapping the given iterator.
Each line will have the delimiter inserted after the line
is streamed.
- Parameters:
itr
- The iterator of String objectsn to wrapdelim
- The delimiter to insert between lines read
read
public int read()
throws java.io.IOException
- Specified by:
read
in class java.io.InputStream
- Throws:
java.io.IOException
Copyright © 1999-2006 Jive Software.