Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.batik.transcoder.svg2svg
Class SVGTranscoder  view SVGTranscoder download SVGTranscoder.java

java.lang.Object
  extended byorg.apache.batik.transcoder.TranscoderSupport
      extended byorg.apache.batik.transcoder.AbstractTranscoder
          extended byorg.apache.batik.transcoder.svg2svg.SVGTranscoder
All Implemented Interfaces:
org.apache.batik.transcoder.Transcoder

public class SVGTranscoder
extends org.apache.batik.transcoder.AbstractTranscoder

This class is a trancoder from SVG to SVG.

Version:
$Id: SVGTranscoder.java,v 1.8 2004/10/30 18:38:06 deweese Exp $

Nested Class Summary
protected static class SVGTranscoder.DoctypeKey
          To represent a doctype key.
protected static class SVGTranscoder.DoctypeValue
          To represent a doctype value.
protected static class SVGTranscoder.NewlineKey
          To represent a newline key.
protected static class SVGTranscoder.NewlineValue
          To represent a newline value.
 
Field Summary
static org.apache.batik.transcoder.ErrorHandler DEFAULT_ERROR_HANDLER
          The default error handler.
static org.apache.batik.transcoder.TranscodingHints.Key KEY_DOCTYPE
          The key to specify the doctype option.
static org.apache.batik.transcoder.TranscodingHints.Key KEY_DOCUMENT_WIDTH
          The key to specify the document width.
static org.apache.batik.transcoder.TranscodingHints.Key KEY_FORMAT
          The key to specify whether to format the input.
static org.apache.batik.transcoder.TranscodingHints.Key KEY_NEWLINE
          The key to specify the newline character sequence.
static org.apache.batik.transcoder.TranscodingHints.Key KEY_PUBLIC_ID
          The key to specify the public id.
static org.apache.batik.transcoder.TranscodingHints.Key KEY_SYSTEM_ID
          The key to specify the system id.
static org.apache.batik.transcoder.TranscodingHints.Key KEY_TABULATION_WIDTH
          The key to specify the tabulation width.
static org.apache.batik.transcoder.TranscodingHints.Key KEY_XML_DECLARATION
          The key to specify the XML declaration option.
static SVGTranscoder.DoctypeValue VALUE_DOCTYPE_CHANGE
          The doctype value to change the declaration.
static SVGTranscoder.DoctypeValue VALUE_DOCTYPE_KEEP_UNCHANGED
          The doctype value to keep unchanged the declaration.
static SVGTranscoder.DoctypeValue VALUE_DOCTYPE_REMOVE
          The doctype value to remove the declaration.
static java.lang.Boolean VALUE_FORMAT_OFF
          The value to turn off formatting.
static java.lang.Boolean VALUE_FORMAT_ON
          The value to turn on formatting.
static SVGTranscoder.NewlineValue VALUE_NEWLINE_CR
          The "\r" newline value.
static SVGTranscoder.NewlineValue VALUE_NEWLINE_CR_LF
          The "\r\n" newline value.
static SVGTranscoder.NewlineValue VALUE_NEWLINE_LF
          The "\n" newline value.
 
Fields inherited from class org.apache.batik.transcoder.TranscoderSupport
handler, hints
 
Constructor Summary
SVGTranscoder()
          Creates a new SVGTranscoder.
 
Method Summary
protected  void prettyPrint(java.io.Reader in, java.io.Writer out)
          Pretty print the given reader.
 void transcode(org.apache.batik.transcoder.TranscoderInput input, org.apache.batik.transcoder.TranscoderOutput output)
          Transcodes the specified input in the specified output.
 
Methods inherited from class org.apache.batik.transcoder.TranscoderSupport
addTranscodingHint, getErrorHandler, getTranscodingHints, removeTranscodingHint, setErrorHandler, setTranscodingHints, setTranscodingHints
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.batik.transcoder.Transcoder
addTranscodingHint, getErrorHandler, getTranscodingHints, removeTranscodingHint, setErrorHandler, setTranscodingHints, setTranscodingHints
 

Field Detail

DEFAULT_ERROR_HANDLER

public static final org.apache.batik.transcoder.ErrorHandler DEFAULT_ERROR_HANDLER
The default error handler.


KEY_NEWLINE

public static final org.apache.batik.transcoder.TranscodingHints.Key KEY_NEWLINE
The key to specify the newline character sequence.


VALUE_NEWLINE_CR

public static final SVGTranscoder.NewlineValue VALUE_NEWLINE_CR
The "\r" newline value.


VALUE_NEWLINE_CR_LF

public static final SVGTranscoder.NewlineValue VALUE_NEWLINE_CR_LF
The "\r\n" newline value.


VALUE_NEWLINE_LF

public static final SVGTranscoder.NewlineValue VALUE_NEWLINE_LF
The "\n" newline value.


KEY_FORMAT

public static final org.apache.batik.transcoder.TranscodingHints.Key KEY_FORMAT
The key to specify whether to format the input.


VALUE_FORMAT_ON

public static final java.lang.Boolean VALUE_FORMAT_ON
The value to turn on formatting.


VALUE_FORMAT_OFF

public static final java.lang.Boolean VALUE_FORMAT_OFF
The value to turn off formatting.


KEY_TABULATION_WIDTH

public static final org.apache.batik.transcoder.TranscodingHints.Key KEY_TABULATION_WIDTH
The key to specify the tabulation width.


KEY_DOCUMENT_WIDTH

public static final org.apache.batik.transcoder.TranscodingHints.Key KEY_DOCUMENT_WIDTH
The key to specify the document width.


KEY_DOCTYPE

public static final org.apache.batik.transcoder.TranscodingHints.Key KEY_DOCTYPE
The key to specify the doctype option.


VALUE_DOCTYPE_CHANGE

public static final SVGTranscoder.DoctypeValue VALUE_DOCTYPE_CHANGE
The doctype value to change the declaration.


VALUE_DOCTYPE_REMOVE

public static final SVGTranscoder.DoctypeValue VALUE_DOCTYPE_REMOVE
The doctype value to remove the declaration.


VALUE_DOCTYPE_KEEP_UNCHANGED

public static final SVGTranscoder.DoctypeValue VALUE_DOCTYPE_KEEP_UNCHANGED
The doctype value to keep unchanged the declaration.


KEY_PUBLIC_ID

public static final org.apache.batik.transcoder.TranscodingHints.Key KEY_PUBLIC_ID
The key to specify the public id.


KEY_SYSTEM_ID

public static final org.apache.batik.transcoder.TranscodingHints.Key KEY_SYSTEM_ID
The key to specify the system id.


KEY_XML_DECLARATION

public static final org.apache.batik.transcoder.TranscodingHints.Key KEY_XML_DECLARATION
The key to specify the XML declaration option.

Constructor Detail

SVGTranscoder

public SVGTranscoder()
Creates a new SVGTranscoder.

Method Detail

transcode

public void transcode(org.apache.batik.transcoder.TranscoderInput input,
                      org.apache.batik.transcoder.TranscoderOutput output)
               throws org.apache.batik.transcoder.TranscoderException
Transcodes the specified input in the specified output.


prettyPrint

protected void prettyPrint(java.io.Reader in,
                           java.io.Writer out)
                    throws org.apache.batik.transcoder.TranscoderException
Pretty print the given reader.