Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.forum.nntp.spi
Class UUEndIterator

java.lang.Object
  extended by com.jivesoftware.forum.nntp.spi.PeekIterator
      extended by com.jivesoftware.forum.nntp.spi.UUEndIterator
All Implemented Interfaces:
java.util.Iterator

public class UUEndIterator
extends PeekIterator

Iterator that continues until the underlying iterator runs out or a uuencoding 'end' token is seen.


Constructor Summary
UUEndIterator(java.util.Iterator itr, java.lang.String headerLine)
          Create an iterator that wraps the given one and uses the given uuencode section header line.
 
Method Summary
 boolean hasNext()
          Returns true if there are more elements that can be returned from calls to next() or peek().
 java.lang.Object next()
          Returns the next element and moves the iterator forward.
 
Methods inherited from class com.jivesoftware.forum.nntp.spi.PeekIterator
peek, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UUEndIterator

public UUEndIterator(java.util.Iterator itr,
                     java.lang.String headerLine)
Create an iterator that wraps the given one and uses the given uuencode section header line.

Parameters:
itr - the iterator to wrap
headerLine - the uunecode section header line to prepend to the iterator
Method Detail

hasNext

public boolean hasNext()
Description copied from class: PeekIterator
Returns true if there are more elements that can be returned from calls to next() or peek().

Specified by:
hasNext in interface java.util.Iterator
Overrides:
hasNext in class PeekIterator
Returns:
True if there are more elements to iterate over

next

public java.lang.Object next()
Description copied from class: PeekIterator
Returns the next element and moves the iterator forward.

Specified by:
next in interface java.util.Iterator
Overrides:
next in class PeekIterator
Returns:
The next element of the iterator

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.