congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ImportRule.getURI
Code IndexAdd Tabnine to your IDE (free)

How to use
getURI
method
in
org.apache.batik.css.engine.ImportRule

Best Java code snippets using org.apache.batik.css.engine.ImportRule.getURI (Showing top 4 results out of 315)

origin: org.netbeans.modules/org-netbeans-modules-visualweb-designer-cssengine

URL url = mr.getURI();
origin: apache/batik

/**
 * Parses and fills the given style-sheet.
 * @param ss The stylesheet to fill.
 * @param uri The base URI.
 */
protected void parseStyleSheet(StyleSheet ss, InputSource is, ParsedURL uri)
  throws IOException {
  parser.setSelectorFactory(CSSSelectorFactory.INSTANCE);
  parser.setConditionFactory(cssConditionFactory);
  try {
    cssBaseURI = uri;
    styleSheetDocumentHandler.styleSheet = ss;
    parser.setDocumentHandler(styleSheetDocumentHandler);
    parser.parseStyleSheet(is);
    // Load the imported sheets.
    int len = ss.getSize();
    for (int i = 0; i < len; i++) {
      Rule r = ss.getRule(i);
      if (r.getType() != ImportRule.TYPE) {
        // @import rules must be the first rules.
        break;
      }
      ImportRule ir = (ImportRule)r;
      parseStyleSheet(ir, ir.getURI());
    }
  } finally {
    cssBaseURI = null;
  }
}
origin: org.apache.xmlgraphics/batik-css

/**
 * Parses and fills the given style-sheet.
 * @param ss The stylesheet to fill.
 * @param uri The base URI.
 */
protected void parseStyleSheet(StyleSheet ss, InputSource is, ParsedURL uri)
  throws IOException {
  parser.setSelectorFactory(CSSSelectorFactory.INSTANCE);
  parser.setConditionFactory(cssConditionFactory);
  try {
    cssBaseURI = uri;
    styleSheetDocumentHandler.styleSheet = ss;
    parser.setDocumentHandler(styleSheetDocumentHandler);
    parser.parseStyleSheet(is);
    // Load the imported sheets.
    int len = ss.getSize();
    for (int i = 0; i < len; i++) {
      Rule r = ss.getRule(i);
      if (r.getType() != ImportRule.TYPE) {
        // @import rules must be the first rules.
        break;
      }
      ImportRule ir = (ImportRule)r;
      parseStyleSheet(ir, ir.getURI());
    }
  } finally {
    cssBaseURI = null;
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Parses and fills the given style-sheet.
 * @param ss The stylesheet to fill.
 * @param uri The base URI.
 */
protected void parseStyleSheet(StyleSheet ss, InputSource is, ParsedURL uri)
  throws IOException {
  parser.setSelectorFactory(CSSSelectorFactory.INSTANCE);
  parser.setConditionFactory(cssConditionFactory);
  try {
    cssBaseURI = uri;
    styleSheetDocumentHandler.styleSheet = ss;
    parser.setDocumentHandler(styleSheetDocumentHandler);
    parser.parseStyleSheet(is);
    // Load the imported sheets.
    int len = ss.getSize();
    for (int i = 0; i < len; i++) {
      Rule r = ss.getRule(i);
      if (r.getType() != ImportRule.TYPE) {
        // @import rules must be the first rules.
        break;
      }
      ImportRule ir = (ImportRule)r;
      parseStyleSheet(ir, ir.getURI());
    }
  } finally {
    cssBaseURI = null;
  }
}
org.apache.batik.css.engineImportRulegetURI

Javadoc

Returns the URI of the imported stylesheet.

Popular methods of ImportRule

  • <init>
  • setMediaList
  • setParent
  • setURI
    Sets the URI of the imported stylesheet.
  • getMediaList
  • getRelativeUri

Popular in Java

  • Reactive rest calls using spring rest template
  • onRequestPermissionsResult (Fragment)
  • getApplicationContext (Context)
  • getSupportFragmentManager (FragmentActivity)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now