Codota Logo
TranscoderOutput.getWriter
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain TranscoderOutput
private void myMethod () {
TranscoderOutput t =
  • Codota IconOutputStream ostream;new TranscoderOutput(ostream)
  • Codota IconFile file;new TranscoderOutput(new FileOutputStream(file))
  • Smart code suggestions by Codota
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Transcodes the specified input in the specified output.
 * @param input the input to transcode
 * @param output the ouput where to transcode
 * @exception TranscoderException if an error occured while transcoding
 */
public void transcode(TranscoderInput input, TranscoderOutput output)
  throws TranscoderException {
  Reader r = input.getReader();
  Writer w = output.getWriter();
  if (r == null) {
    Document d = input.getDocument();
    if (d == null) {
      throw new Error("Reader or Document expected");
    }
    StringWriter sw = new StringWriter( 1024 );
    try {
      DOMUtilities.writeDocument(d, sw);
    } catch ( IOException ioEx ) {
      throw new Error("IO:" + ioEx.getMessage() );
    }
    r = new StringReader(sw.toString());
  }
  if (w == null) {
    throw new Error("Writer expected");
  }
  prettyPrint(r, w);
}
origin: apache/batik

/**
 * Transcodes the specified input in the specified output.
 * @param input the input to transcode
 * @param output the ouput where to transcode
 * @exception TranscoderException if an error occured while transcoding
 */
public void transcode(TranscoderInput input, TranscoderOutput output)
  throws TranscoderException {
  Reader r = input.getReader();
  Writer w = output.getWriter();
  if (r == null) {
    Document d = input.getDocument();
    if (d == null) {
      throw new RuntimeException("Reader or Document expected");
    }
    StringWriter sw = new StringWriter( 1024 );
    try {
      DOMUtilities.writeDocument(d, sw);
    } catch ( IOException ioEx ) {
      throw new RuntimeException("IO:" + ioEx.getMessage() );
    }
    r = new StringReader(sw.toString());
  }
  if (w == null) {
    throw new RuntimeException("Writer expected");
  }
  prettyPrint(r, w);
}
origin: fr.avianey.apache-xmlgraphics/batik

Writer wr = output.getWriter();
if (wr != null) {
  svgGenerator.stream(svgRoot, wr, false, escaped);
origin: apache/batik

Writer wr = output.getWriter();
if (wr != null) {
  svgGenerator.stream(svgRoot, wr, false, escaped);
org.apache.batik.transcoderTranscoderOutputgetWriter

Javadoc

Returns the output of this transcoder as a character stream 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.
  • getDocument
    Returns the output of this transcoder as a document or null if none was supplied.
  • getURI
    Returns the output of this transcoder as a URI 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
  • runOnUiThread (Activity)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
  • ImageIO (javax.imageio)
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