Tabnine Logo
TranscoderOutput.getDocument
Code IndexAdd Tabnine to your IDE (free)

How to use
getDocument
method
in
org.apache.batik.transcoder.TranscoderOutput

Best Java code snippets using org.apache.batik.transcoder.TranscoderOutput.getDocument (Showing top 4 results out of 315)

origin: apache/batik

/** Create an empty Document from a TranscoderOutput.
 *  <ul>
 *  <li>If the TranscoderOutput already contains an empty Document : returns this
 *  Document</li>
 *  <li>else create a new empty DOM Document</li>
 *  </ul>
 */
protected Document createDocument(TranscoderOutput output) {
  // Use SVGGraphics2D to generate SVG content
  Document doc;
  if (output.getDocument() == null) {
    DOMImplementation domImpl = SVGDOMImplementation.getDOMImplementation();
    doc = domImpl.createDocument(SVG_NAMESPACE_URI, SVG_SVG_TAG, null);
  } else {
    doc = output.getDocument();
  }
  return doc;
}
origin: fr.avianey.apache-xmlgraphics/batik

/** Create an empty Document from a TranscoderOutput.
 *  <ul>
 *  <li>If the TranscoderOutput already contains an empty Document : returns this
 *  Document</li>
 *  <li>else create a new empty DOM Document</li>
 *  </ul>
 */
protected Document createDocument(TranscoderOutput output) {
  // Use SVGGraphics2D to generate SVG content
  Document doc;
  if (output.getDocument() == null) {
    DOMImplementation domImpl = SVGDOMImplementation.getDOMImplementation();
    doc = domImpl.createDocument(SVG_NAMESPACE_URI, SVG_SVG_TAG, null);
  } else {
    doc = output.getDocument();
  }
  return doc;
}
origin: fr.avianey.apache-xmlgraphics/batik

TranscoderOutput output) throws TranscoderException {
Document doc = output.getDocument();
origin: apache/batik

TranscoderOutput output) throws TranscoderException {
Document doc = output.getDocument();
org.apache.batik.transcoderTranscoderOutputgetDocument

Javadoc

Returns the output of this transcoder as a document or null if none was supplied.

Popular methods of TranscoderOutput

  • <init>
    Constructs a new TranscoderOutput with the specified XML filter.
  • getOutputStream
    Returns the output of this transcoder as a byte stream or null if none was supplied.
  • getURI
    Returns the output of this transcoder as a URI or null if none was supplied.
  • getWriter
    Returns the output of this transcoder as a character stream or null if none was supplied.
  • getXMLFilter
    Returns the output of this transcoder as a XML filter or null if none was supplied.
  • setOutputStream
    Sets the output of this transcoder output with the specified byte stream.

Popular in Java

  • Making http post requests using okhttp
  • getContentResolver (Context)
  • setScale (BigDecimal)
  • setContentView (Activity)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • JFrame (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Github Copilot alternatives
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