Class ContentRange

  • public class ContentRange
    extends Object
    • Constructor Detail

      • ContentRange

        public ContentRange​(String units,
                            long start,
                            long end,
                            long length)
    • Method Detail

      • getUnits

        public String getUnits()
      • getStart

        public long getStart()
      • getEnd

        public long getEnd()
      • getLength

        public long getLength()
      • parse

        public static ContentRange parse​(StringReader input)
                                  throws IOException
        Parses a Content-Range header from an HTTP header.
        input - a reader over the header text
        the range parsed from the input, or null if not valid
        IOException - if there was a problem reading the input