Module Jabber::FileTransfer::TransferSource
In: lib/xmpp4r/bytestreams/helper/filetransfer.rb

The TransferSource is an interface (Mix-in) which sources for FileTransfer#offer should include

Methods

can_range?   date   filename   length=   md5   mime   read   seek   size  

Public Instance methods

Does implement the methods seek and length= ?

FileTransfer will only then offer a ranged transfer.

result:[false] or [true]

[Source]

    # File lib/xmpp4r/bytestreams/helper/filetransfer.rb, line 55
55:       def can_range?
56:         false
57:       end

Date of the offered file, can be nil

[Source]

    # File lib/xmpp4r/bytestreams/helper/filetransfer.rb, line 32
32:       def date
33:       end

Filename of the offered file

[Source]

    # File lib/xmpp4r/bytestreams/helper/filetransfer.rb, line 16
16:       def filename
17:       end

Set the amount of data to send for ranged transfers

[Source]

    # File lib/xmpp4r/bytestreams/helper/filetransfer.rb, line 48
48:       def length=(l)
49:       end

MD5-Sum of the offered file, can be nil

[Source]

    # File lib/xmpp4r/bytestreams/helper/filetransfer.rb, line 28
28:       def md5
29:       end

Mime-type of the offered file, can be nil

[Source]

    # File lib/xmpp4r/bytestreams/helper/filetransfer.rb, line 20
20:       def mime
21:       end

Read a chunk from the source

If this is a ranged transfer, it should implement length checking

length:[Fixnum]

[Source]

    # File lib/xmpp4r/bytestreams/helper/filetransfer.rb, line 40
40:       def read(length=nil)
41:       end

Seek in the source for ranged transfers

[Source]

    # File lib/xmpp4r/bytestreams/helper/filetransfer.rb, line 44
44:       def seek(position)
45:       end

Size of the offered file

[Source]

    # File lib/xmpp4r/bytestreams/helper/filetransfer.rb, line 24
24:       def size
25:       end

[Validate]