Class Range


  • public class Range
    extends Object
    • Constructor Detail

      • Range

        public Range​(int start,
                     int finish)
      • Range

        public Range​(Long start,
                     Long finish)
    • Method Detail

      • getStart

        public Long getStart()
      • getFinish

        public Long getFinish()
      • getLength

        public Long getLength()
        Calculate the length of this range if both start and finish indexes are non-null, otherwise return null
        Returns:
      • getRange

        public String getRange()
        Returns range in String format ("start-end"), ready to be put into HTTP range request
        Returns:
        Range of data in stream