Package org.apache.commons.net.nntp
Class NewsgroupIterator
java.lang.Object
org.apache.commons.net.nntp.NewsgroupIterator
- All Implemented Interfaces:
Iterable<NewsgroupInfo>,Iterator<NewsgroupInfo>
Class which wraps an
Iterable<String> of raw newgroup information to generate an Iterable<NewsgroupInfo> of the parsed information.- Since:
- 3.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
stringIterator
-
-
Constructor Details
-
NewsgroupIterator
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<NewsgroupInfo>
-
iterator
- Specified by:
iteratorin interfaceIterable<NewsgroupInfo>
-
next
- Specified by:
nextin interfaceIterator<NewsgroupInfo>
-
remove
public void remove()- Specified by:
removein interfaceIterator<NewsgroupInfo>
-