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 59
59:       def can_range?
60:         false
61:       end

Date of the offered file, can be nil

[Source]

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

Filename of the offered file

[Source]

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

Set the amount of data to send for ranged transfers

[Source]

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

MD5-Sum of the offered file, can be nil

[Source]

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

Mime-type of the offered file, can be nil

[Source]

    # File lib/xmpp4r/bytestreams/helper/filetransfer.rb, line 24
24:       def mime
25:       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 44
44:       def read(length=nil)
45:       end

Seek in the source for ranged transfers

[Source]

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

Size of the offered file

[Source]

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

[Validate]