class Gedcomx::Iterator

Public Class Methods

new(input) click to toggle source
# File lib/gedcomx/iterator.rb, line 4
def initialize(input)
  unless File.file?(input)
    input = Gedcomx.input_stream(input)
  end
  @iter = org.gedcomx.util.RecordSetIterator.new(input)
end

Public Instance Methods

done?() click to toggle source
# File lib/gedcomx/iterator.rb, line 15
def done?
  !@iter.hasNext
end
has_next?() click to toggle source
# File lib/gedcomx/iterator.rb, line 11
def has_next?
  @iter.hasNext
end
next() click to toggle source
# File lib/gedcomx/iterator.rb, line 19
def next
  Record.new(@iter.next)
end
to_java() click to toggle source
# File lib/gedcomx/iterator.rb, line 23
def to_java
  @iter
end