code: protected static ArrayList<FileRange> getFileRanges(InputStream streamRef) throws ParserConfigurationException,
              SAXException, IOException {
          SAXParser saxParser = Utility.getSAXParser();
          FileRangeHandler handler = new FileRangeHandler();
          saxParser.parse(streamRef, handler);
  
          return handler.fileRanges;
      }
docs: Returns an ArrayList of File Ranges for the given stream.
  
  @return an ArrayList of File Ranges for the given stream.
  @throws SAXException
  @throws ParserConfigurationException
  @throws IOException