Tabnine Logo
Parser.formatMessage
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.apache.xmlgraphics/batik-css

/**
 * Creates a parse exception.
 */
protected CSSParseException createCSSParseException(String key,
                          Object[] params) {
  return new CSSParseException(formatMessage(key, params),
                 documentURI,
                 scanner.getLine(),
                 scanner.getColumn());
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Creates a parse exception.
 */
protected CSSParseException createCSSParseException(String key,
                          Object[] params) {
  return new CSSParseException(formatMessage(key, params),
                 documentURI,
                 scanner.getLine(),
                 scanner.getColumn());
}
origin: apache/batik

/**
 * Creates a parse exception.
 */
protected CSSParseException createCSSParseException(String key,
                          Object[] params) {
  return new CSSParseException(formatMessage(key, params),
                 documentURI,
                 scanner.getLine(),
                 scanner.getColumn());
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Creates a scanner, given an InputSource.
 */
protected Scanner createScanner(InputSource source) {
  documentURI = source.getURI();
  if (documentURI == null) {
    documentURI = "";
  }
  Reader r = source.getCharacterStream();
  if (r != null) {
    return new Scanner(r);
  }
  InputStream is = source.getByteStream();
  if (is != null) {
    return new Scanner(is, source.getEncoding());
  }
  String uri = source.getURI();
  if (uri == null) {
    throw new CSSException(formatMessage("empty.source", null));
  }
  try {
    ParsedURL purl = new ParsedURL(uri);
    is = purl.openStreamRaw(CSSConstants.CSS_MIME_TYPE);
    return new Scanner(is, source.getEncoding());
  } catch (IOException e) {
    throw new CSSException(e);
  }
}
origin: apache/batik

/**
 * Creates a scanner, given an InputSource.
 */
protected Scanner createScanner(InputSource source) {
  documentURI = source.getURI();
  if (documentURI == null) {
    documentURI = "";
  }
  Reader r = source.getCharacterStream();
  if (r != null) {
    return new Scanner(r);
  }
  InputStream is = source.getByteStream();
  if (is != null) {
    return new Scanner(is, source.getEncoding());
  }
  String uri = source.getURI();
  if (uri == null) {
    throw new CSSException(formatMessage("empty.source", null));
  }
  try {
    ParsedURL purl = new ParsedURL(uri);
    is = purl.openStreamRaw(CSSConstants.CSS_MIME_TYPE);
    return new Scanner(is, source.getEncoding());
  } catch (IOException e) {
    throw new CSSException(e);
  }
}
origin: org.apache.xmlgraphics/batik-css

/**
 * Creates a scanner, given an InputSource.
 */
protected Scanner createScanner(InputSource source) {
  documentURI = source.getURI();
  if (documentURI == null) {
    documentURI = "";
  }
  Reader r = source.getCharacterStream();
  if (r != null) {
    return new Scanner(r);
  }
  InputStream is = source.getByteStream();
  if (is != null) {
    return new Scanner(is, source.getEncoding());
  }
  String uri = source.getURI();
  if (uri == null) {
    throw new CSSException(formatMessage("empty.source", null));
  }
  try {
    ParsedURL purl = new ParsedURL(uri);
    is = purl.openStreamRaw(CSSConstants.CSS_MIME_TYPE);
    return new Scanner(is, source.getEncoding());
  } catch (IOException e) {
    throw new CSSException(e);
  }
}
org.apache.batik.css.parserParserformatMessage

Javadoc

Implements org.apache.batik.i18n.Localizable#formatMessage(String,Object[]).

Popular methods of Parser

  • parseStyleDeclaration
    Parses the given reader.
  • 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.
  • 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

  • Running tasks concurrently on multiple threads
  • getApplicationContext (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getResourceAsStream (ClassLoader)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Best IntelliJ plugins
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