Tabnine Logo
SVGDocumentFactory.createSVGDocument
Code IndexAdd Tabnine to your IDE (free)

How to use
createSVGDocument
method
in
org.apache.batik.dom.svg.SVGDocumentFactory

Best Java code snippets using org.apache.batik.dom.svg.SVGDocumentFactory.createSVGDocument (Showing top 7 results out of 315)

origin: apache/batik

/**
 * Returns a document from the specified uri.
 * @param uri the uri of the document
 * @exception IOException if an I/O error occured while loading
 * the document
 */
public Document loadDocument(String uri, InputStream is)
  throws IOException {
  Document ret = checkCache(uri);
  if (ret != null)
    return ret;
  SVGDocument document = documentFactory.createSVGDocument(uri, is);
  DocumentDescriptor desc = documentFactory.getDocumentDescriptor();
  DocumentState state = new DocumentState(uri, document, desc);
  synchronized (cacheMap) {
    cacheMap.put(uri, state);
  }
  return state.getDocument();
}
origin: org.apache.xmlgraphics/batik-bridge

/**
 * Returns a document from the specified uri.
 * @param uri the uri of the document
 * @exception IOException if an I/O error occured while loading
 * the document
 */
public Document loadDocument(String uri, InputStream is)
  throws IOException {
  Document ret = checkCache(uri);
  if (ret != null)
    return ret;
  SVGDocument document = documentFactory.createSVGDocument(uri, is);
  DocumentDescriptor desc = documentFactory.getDocumentDescriptor();
  DocumentState state = new DocumentState(uri, document, desc);
  synchronized (cacheMap) {
    cacheMap.put(uri, state);
  }
  return state.getDocument();
}
origin: org.apache.xmlgraphics/batik-bridge

/**
 * Returns a document from the specified uri.
 * @param uri the uri of the document
 * @exception IOException if an I/O error occured while loading
 * the document
 */
public Document loadDocument(String uri) throws IOException {
  Document ret = checkCache(uri);
  if (ret != null)
    return ret;
  SVGDocument document = documentFactory.createSVGDocument(uri);
  DocumentDescriptor desc = documentFactory.getDocumentDescriptor();
  DocumentState state = new DocumentState(uri, document, desc);
  synchronized (cacheMap) {
    cacheMap.put(uri, state);
  }
  return state.getDocument();
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Returns a document from the specified uri.
 * @param uri the uri of the document
 * @exception IOException if an I/O error occured while loading
 * the document
 */
public Document loadDocument(String uri, InputStream is)
  throws IOException {
  Document ret = checkCache(uri);
  if (ret != null)
    return ret;
  SVGDocument document = documentFactory.createSVGDocument(uri, is);
  DocumentDescriptor desc = documentFactory.getDocumentDescriptor();
  DocumentState state = new DocumentState(uri, document, desc);
  synchronized (cacheMap) {
    cacheMap.put(uri, state);
  }
  return state.getDocument();
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Returns a document from the specified uri.
 * @param uri the uri of the document
 * @exception IOException if an I/O error occured while loading
 * the document
 */
public Document loadDocument(String uri) throws IOException {
  Document ret = checkCache(uri);
  if (ret != null)
    return ret;
  SVGDocument document = documentFactory.createSVGDocument(uri);
  DocumentDescriptor desc = documentFactory.getDocumentDescriptor();
  DocumentState state = new DocumentState(uri, document, desc);
  synchronized (cacheMap) {
    cacheMap.put(uri, state);
  }
  return state.getDocument();
}
origin: apache/batik

/**
 * Returns a document from the specified uri.
 * @param uri the uri of the document
 * @exception IOException if an I/O error occured while loading
 * the document
 */
public Document loadDocument(String uri) throws IOException {
  Document ret = checkCache(uri);
  if (ret != null)
    return ret;
  SVGDocument document = documentFactory.createSVGDocument(uri);
  DocumentDescriptor desc = documentFactory.getDocumentDescriptor();
  DocumentState state = new DocumentState(uri, document, desc);
  synchronized (cacheMap) {
    cacheMap.put(uri, state);
  }
  return state.getDocument();
}
origin: jasperreports/jasperreports

if (svgText != null)
  document = documentFactory.createSVGDocument(null,
      new StringReader(svgText));
  document = documentFactory.createSVGDocument(null,
      new ByteArrayInputStream(svgData));
org.apache.batik.dom.svgSVGDocumentFactorycreateSVGDocument

Javadoc

Creates a SVG Document instance.

Popular methods of SVGDocumentFactory

  • setValidating
  • getDocumentDescriptor

Popular in Java

  • Finding current android device location
  • startActivity (Activity)
  • onRequestPermissionsResult (Fragment)
  • runOnUiThread (Activity)
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • 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