code: public MediaQueryList parseMedia(final String media) throws IOException {
          try (InputSource source = new InputSource(new StringReader(media))) {
              final HandlerBase handler = new HandlerBase();
              parser_.setDocumentHandler(handler);
              if (parser_ instanceof AbstractCSSParser) {
                  return ((AbstractCSSParser) parser_).parseMedia(source);
              }
              return null;
          }
      }
docs: Parses a string into a MediaQueryList.
  
  @param media the input string
  @return the css media query list
  @throws IOException if the underlying SAC parser throws an IOException