Information for ranged transfers
# File lib/xmpp4r/bytestreams/iq/si.rb, line 174 def initialize(offset=nil, length=nil) super() self.offset = offset self.length = length end
File length (if not to transfer whole file)
# File lib/xmpp4r/bytestreams/iq/si.rb, line 195 def length (attributes['length'] =~ /^\d+$/) ? attributes['length'].to_i : nil end
Set file length
# File lib/xmpp4r/bytestreams/iq/si.rb, line 201 def length=(o) attributes['length'] = (o ? o.to_s : nil) end
File offset (for continuing an interrupted transfer)
# File lib/xmpp4r/bytestreams/iq/si.rb, line 183 def offset (attributes['offset'] =~ /^\d+$/) ? attributes['offset'].to_i : nil end
Set file offset
# File lib/xmpp4r/bytestreams/iq/si.rb, line 189 def offset=(o) attributes['offset'] = (o ? o.to_s : nil) end