Class FileServlet.Range

java.lang.Object
controller.utils.FileServlet.Range
Enclosing class:
FileServlet

protected class FileServlet.Range
extends java.lang.Object
This class represents a byte range.
  • Field Summary

    Fields
    Modifier and Type Field Description
    private long end
    end range.
    private long length
    length range.
    private long start
    start range.
    private long total
    total range.
  • Constructor Summary

    Constructors
    Constructor Description
    Range​(long st, long en, long tot)
    Construct a byte range.
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • start

      private long start
      start range.
    • end

      private long end
      end range.
    • length

      private long length
      length range.
    • total

      private long total
      total range.
  • Constructor Details

    • Range

      public Range​(long st, long en, long tot)
      Construct a byte range.
      Parameters:
      st - Start of the byte range.
      en - End of the byte range.
      tot - Total length of the byte source.