Author: david.lloyd(a)jboss.com
Date: 2009-11-04 18:19:07 -0500 (Wed, 04 Nov 2009)
New Revision: 5583
Modified:
remoting3/trunk/jboss-remoting/src/main/java/org/jboss/remoting3/stream/Streams.java
Log:
Fix incomplete impl
Modified:
remoting3/trunk/jboss-remoting/src/main/java/org/jboss/remoting3/stream/Streams.java
===================================================================
---
remoting3/trunk/jboss-remoting/src/main/java/org/jboss/remoting3/stream/Streams.java 2009-11-04
23:17:36 UTC (rev 5582)
+++
remoting3/trunk/jboss-remoting/src/main/java/org/jboss/remoting3/stream/Streams.java 2009-11-04
23:19:07 UTC (rev 5583)
@@ -340,11 +340,12 @@
}
public boolean hasNext() throws IOException {
- return false;
+ return source.hasNext();
}
public Pair<K, V> next() throws NoSuchElementException, IOException {
- return null;
+ final Map.Entry<K, V> entry = source.next();
+ return Pair.create(entry.getKey(), entry.getValue());
}
public void close() throws IOException {