code: public StyleSheet parse(Object source, NetworkProcessor network, String encoding, SourceType type,
                              Element inline, boolean inlinePriority, URL base) throws IOException, CSSException {
  
          StyleSheet sheet = (StyleSheet) CSSFactory.getRuleFactory()
                  .createStyleSheet().unlock();
  
          Preparator preparator = new SimplePreparator(inline, inlinePriority);
          return parseAndImport(source, network, encoding, type, sheet, preparator, base, null);
      }
docs: Parses source of given type
  
  @param source         Source, interpretation depends on {@code type}
  @param type           Type of source provided
  @param inline         InlineElement
  @param inlinePriority True when the rule should have an 'inline' (greater) priority
  @return Created StyleSheet
  @throws IOException  When problem with input stream occurs
  @throws CSSException When unrecoverable exception during parsing occurs