00001 using System;
00002 using System.Collections;
00003
00004 namespace Tamir.SharpSsh.java.util
00005 {
00009 public class Enumeration
00010 {
00011 private IEnumerator e;
00012 private bool hasMore;
00013 public Enumeration(IEnumerator e)
00014 {
00015 this.e=e;
00016 hasMore = e.MoveNext();
00017 }
00018
00019 public bool hasMoreElements()
00020 {
00021 return hasMore;
00022 }
00023
00024 public object nextElement()
00025 {
00026 object o = e.Current;
00027 hasMore = e.MoveNext();
00028 return o;
00029 }
00030 }
00031 }