Codota Logo
SVGDocumentFactory
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
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: jasperreports/jasperreports

documentFactory.setValidating(userAgent.isXMLParserValidating());
  document = documentFactory.createSVGDocument(null,
      new StringReader(svgText));
  document = documentFactory.createSVGDocument(null,
      new ByteArrayInputStream(svgData));
origin: org.apache.xmlgraphics/batik-bridge

/**
 * Constructs a new <code>DocumentLoader</code> with the specified XML parser.
 * @param userAgent the user agent to use
 */
public DocumentLoader(UserAgent userAgent) {
  this.userAgent = userAgent;
  documentFactory = new SAXSVGDocumentFactory
    (userAgent.getXMLParserClassName(), true);
  documentFactory.setValidating(userAgent.isXMLParserValidating());
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Constructs a new <code>DocumentLoader</code> with the specified XML parser.
 * @param userAgent the user agent to use
 */
public DocumentLoader(UserAgent userAgent) {
  this.userAgent = userAgent;
  documentFactory = new SAXSVGDocumentFactory
    (userAgent.getXMLParserClassName(), true);
  documentFactory.setValidating(userAgent.isXMLParserValidating());
}
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: apache/batik

/**
 * Constructs a new <code>DocumentLoader</code> with the specified XML parser.
 * @param userAgent the user agent to use
 */
public DocumentLoader(UserAgent userAgent) {
  this.userAgent = userAgent;
  documentFactory = new SAXSVGDocumentFactory
    (userAgent.getXMLParserClassName(), true);
  documentFactory.setValidating(userAgent.isXMLParserValidating());
}
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: 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: 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: 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();
}
org.apache.batik.dom.svgSVGDocumentFactory

Javadoc

This interface represents an object which can build a SVGDocument.

Most used methods

  • createSVGDocument
    Creates a SVG Document instance.
  • setValidating
  • getDocumentDescriptor

Popular in Java

  • Making http post requests using okhttp
  • setRequestProperty (URLConnection)
  • getExternalFilesDir (Context)
  • findViewById (Activity)
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • PriorityQueue (java.util)
    An unbounded priority Queue based on a priority heap. The elements of the priority queue are ordered
  • Timer (java.util)
    A facility for threads to schedule tasks for future execution in a background thread. Tasks may be s
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
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