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
  • getSystemService (Context)
  • findViewById (Activity)
  • getContentResolver (Context)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • JTextField (javax.swing)
  • 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