Class Ranges


  • public class Ranges
    extends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Ranges.Entry  
    • Constructor Summary

      Constructors 
      Constructor Description
      Ranges​(java.lang.String units, java.util.List<Ranges.Entry> entries)  
    • Constructor Detail

      • Ranges

        public Ranges​(java.lang.String units,
                      java.util.List<Ranges.Entry> entries)
    • Method Detail

      • getEntries

        public java.util.List<Ranges.Entry> getEntries()
      • getUnits

        public java.lang.String getUnits()
      • parse

        public static Ranges parse​(java.io.StringReader input)
                            throws java.io.IOException
        Parses a Range header from an HTTP header.
        Parameters:
        input - a reader over the header text
        Returns:
        a set of ranges parsed from the input, or null if not valid
        Throws:
        java.io.IOException - if there was a problem reading the input