Ejemplo n.º 1
0
 /// <summary>Advance to the next key, value pair, returning null if at end.</summary>
 /// <returns>the key object that was read into, or null if no more</returns>
 /// <exception cref="System.IO.IOException"/>
 /// <exception cref="System.Exception"/>
 public override bool NextKeyValue()
 {
     if (inputQueue != null)
     {
         return(ReadFromQueue());
     }
     else
     {
         if (inputContext.NextKeyValue())
         {
             this.key   = inputContext.GetCurrentKey();
             this.value = inputContext.GetCurrentValue();
             return(true);
         }
         else
         {
             return(false);
         }
     }
 }