Package org.apache.commons.net.nntp
Class NewsgroupIterator
- java.lang.Object
-
- org.apache.commons.net.nntp.NewsgroupIterator
-
- All Implemented Interfaces:
java.lang.Iterable<NewsgroupInfo>,java.util.Iterator<NewsgroupInfo>
class NewsgroupIterator extends java.lang.Object implements java.util.Iterator<NewsgroupInfo>, java.lang.Iterable<NewsgroupInfo>
Class which wraps anIterable<String>of raw newgroup information to generate anIterable<NewsgroupInfo>of the parsed information.- Since:
- 3.0
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Iterator<java.lang.String>stringIterator
-
Constructor Summary
Constructors Constructor Description NewsgroupIterator(java.lang.Iterable<java.lang.String> iterableString)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()java.util.Iterator<NewsgroupInfo>iterator()NewsgroupInfonext()voidremove()
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator<NewsgroupInfo>
-
next
public NewsgroupInfo next()
- Specified by:
nextin interfacejava.util.Iterator<NewsgroupInfo>
-
remove
public void remove()
- Specified by:
removein interfacejava.util.Iterator<NewsgroupInfo>
-
iterator
public java.util.Iterator<NewsgroupInfo> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<NewsgroupInfo>
-
-