Codota Logo
Parser.parseStyleDeclaration
Code IndexAdd Codota to your IDE (free)

How to use
parseStyleDeclaration
method
in
org.apache.batik.css.parser.Parser

Best Java code snippets using org.apache.batik.css.parser.Parser.parseStyleDeclaration (Showing top 13 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: apache/batik

/**
 * Parses a style declaration using the current scanner.
 */
protected void parseStyleDeclarationInternal()
  throws CSSException, IOException {
  nextIgnoreSpaces();
  try {
    parseStyleDeclaration(false);
  } catch (CSSParseException e) {
    reportError(e);
  } finally {
    scanner.close();
    scanner = null;
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Parses a style declaration using the current scanner.
 */
protected void parseStyleDeclarationInternal()
  throws CSSException, IOException {
  nextIgnoreSpaces();
  try {
    parseStyleDeclaration(false);
  } catch (CSSParseException e) {
    reportError(e);
  } finally {
    scanner.close();
    scanner = null;
  }
}
origin: org.apache.xmlgraphics/batik-css

/**
 * Parses a style declaration using the current scanner.
 */
protected void parseStyleDeclarationInternal()
  throws CSSException, IOException {
  nextIgnoreSpaces();
  try {
    parseStyleDeclaration(false);
  } catch (CSSParseException e) {
    reportError(e);
  } finally {
    scanner.close();
    scanner = null;
  }
}
origin: org.owasp/antisamy

  parser.parseStyleDeclaration(taintedCss);
} catch (IOException ioe) {
  throw new ScanException(ioe);
origin: org.apache.xmlgraphics/batik-css

/**
 * Parses a font-face rule.
 */
protected void parseFontFaceRule() {
  try {
    documentHandler.startFontFace();
    if (current != LexicalUnits.LEFT_CURLY_BRACE) {
      reportError("left.curly.brace");
    } else {
      nextIgnoreSpaces();
      try {
        parseStyleDeclaration(true);
      } catch (CSSParseException e) {
        reportError(e);
      }
    }
  } finally {
    documentHandler.endFontFace();
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Parses a font-face rule.
 */
protected void parseFontFaceRule() {
  try {
    documentHandler.startFontFace();
    if (current != LexicalUnits.LEFT_CURLY_BRACE) {
      reportError("left.curly.brace");
    } else {
      nextIgnoreSpaces();
      try {
        parseStyleDeclaration(true);
      } catch (CSSParseException e) {
        reportError(e);
      }
    }
  } finally {
    documentHandler.endFontFace();
  }
}
origin: apache/batik

/**
 * Parses a font-face rule.
 */
protected void parseFontFaceRule() {
  try {
    documentHandler.startFontFace();
    if (current != LexicalUnits.LEFT_CURLY_BRACE) {
      reportError("left.curly.brace");
    } else {
      nextIgnoreSpaces();
      try {
        parseStyleDeclaration(true);
      } catch (CSSParseException e) {
        reportError(e);
      }
    }
  } finally {
    documentHandler.endFontFace();
  }
}
origin: org.apache.xmlgraphics/batik-css

/**
 * Parses a ruleset.
 */
protected void parseRuleSet() {
  SelectorList sl = null;
  try {
    sl = parseSelectorList();
  } catch (CSSParseException e) {
    reportError(e);
    return;
  }
  try {
    documentHandler.startSelector(sl);
    if (current != LexicalUnits.LEFT_CURLY_BRACE) {
      reportError("left.curly.brace");
      if (current == LexicalUnits.RIGHT_CURLY_BRACE) {
        nextIgnoreSpaces();
      }
    } else {
      nextIgnoreSpaces();
      try {
        parseStyleDeclaration(true);
      } catch (CSSParseException e) {
        reportError(e);
      }
    }
  } finally {
    documentHandler.endSelector(sl);
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Parses a ruleset.
 */
protected void parseRuleSet() {
  SelectorList sl = null;
  try {
    sl = parseSelectorList();
  } catch (CSSParseException e) {
    reportError(e);
    return;
  }
  try {
    documentHandler.startSelector(sl);
    if (current != LexicalUnits.LEFT_CURLY_BRACE) {
      reportError("left.curly.brace");
      if (current == LexicalUnits.RIGHT_CURLY_BRACE) {
        nextIgnoreSpaces();
      }
    } else {
      nextIgnoreSpaces();
      try {
        parseStyleDeclaration(true);
      } catch (CSSParseException e) {
        reportError(e);
      }
    }
  } finally {
    documentHandler.endSelector(sl);
  }
}
origin: apache/batik

/**
 * Parses a ruleset.
 */
protected void parseRuleSet() {
  SelectorList sl = null;
  try {
    sl = parseSelectorList();
  } catch (CSSParseException e) {
    reportError(e);
    return;
  }
  try {
    documentHandler.startSelector(sl);
    if (current != LexicalUnits.LEFT_CURLY_BRACE) {
      reportError("left.curly.brace");
      if (current == LexicalUnits.RIGHT_CURLY_BRACE) {
        nextIgnoreSpaces();
      }
    } else {
      nextIgnoreSpaces();
      try {
        parseStyleDeclaration(true);
      } catch (CSSParseException e) {
        reportError(e);
      }
    }
  } finally {
    documentHandler.endSelector(sl);
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

  parseStyleDeclaration(true);
} catch (CSSParseException e) {
  reportError(e);
origin: org.apache.xmlgraphics/batik-css

  parseStyleDeclaration(true);
} catch (CSSParseException e) {
  reportError(e);
origin: apache/batik

  parseStyleDeclaration(true);
} catch (CSSParseException e) {
  reportError(e);
org.apache.batik.css.parserParserparseStyleDeclaration

Javadoc

Implements ExtendedParser#parseStyleDeclaration(String).

Popular methods of Parser

  • parseStyleSheet
    SAC: Implements org.w3c.css.sac.Parser#parseStyleSheet(InputSource).
  • createCSSParseException
    Creates a parse exception.
  • createScanner
    Creates a scanner, given an InputSource.
  • dimension
    Converts the current lexical unit to a dimension.
  • formatMessage
    Implements org.apache.batik.i18n.Localizable#formatMessage(String,Object[]).
  • hexcolor
    Converts a hash unit to a RGB color.
  • isPseudoElement
    Tells whether or not the given string represents a pseudo-element.
  • next
    Advances to the next token, ignoring comments.
  • nextIgnoreSpaces
    Advances to the next token and skip the spaces, ignoring comments.
  • number
    Converts the current lexical unit to a float.
  • parseAtRule
    Parses an unknown rule.
  • parseExpression
    Parses a CSS2 expression.
  • parseAtRule,
  • parseExpression,
  • parseFontFaceRule,
  • parseFunction,
  • parseImportRule,
  • parseMediaList,
  • parseMediaRule,
  • parsePageRule,
  • parsePriorityInternal

Popular in Java

  • Updating database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • getSystemService (Context)
  • getExternalFilesDir (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • BitSet (java.util)
    This class implements a vector of bits that grows as needed. Each component of the bit set has a boo
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now