Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.forum.nntp.spi
Class StringIteratorInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by 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.


Constructor Summary
StringIteratorInputStream(java.util.Iterator itr)
          Create an input stream wrapping the given iterator.
StringIteratorInputStream(java.util.Iterator itr, java.lang.String delim)
          Create an input stream wrapping the given iterator.
 
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
 

Constructor Detail

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 wrap
delim - The delimiter to insert between lines read
Method Detail

read

public int read()
         throws java.io.IOException
Specified by:
read in class java.io.InputStream
Throws:
java.io.IOException

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.