java.lang.Object
org.jivesoftware.smackx.jingle_filetransfer.element.Range
All Implemented Interfaces:
Element, NamedElement, XmlElement, XmlLangElement

public class Range extends Object implements XmlElement
RangeElement which specifies, which range of a file shall be transferred.
  • Field Details

  • Constructor Details

    • Range

      public Range()
      Create a Range element with default values.
    • Range

      public Range(int length)
      Create a Range element with specified length.
      Parameters:
      length - length of the transmitted data in bytes.
    • Range

      public Range(int offset, int length)
      Create a Range element with specified offset and length.
      Parameters:
      offset - offset in bytes from the beginning of the transmitted data.
      length - number of bytes that shall be transferred.
    • Range

      public Range(Integer offset, Integer length, HashElement hash)
      Create a Range element with specified offset, length and hash.
      Parameters:
      offset - offset in bytes from the beginning of the transmitted data.
      length - number of bytes that shall be transferred.
      hash - hash of the bytes in the specified range.
  • Method Details