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 ; } }
Parses a string into a MediaQueryList .