Transcoderpublic class SVGTranscoder extends AbstractTranscoder
| Modifier and Type | Class | Description |
|---|---|---|
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.
|
| Modifier and Type | Field | Description |
|---|---|---|
static ErrorHandler |
DEFAULT_ERROR_HANDLER |
The default error handler.
|
static TranscodingHints.Key |
KEY_DOCTYPE |
The key to specify the doctype option.
|
static TranscodingHints.Key |
KEY_DOCUMENT_WIDTH |
The key to specify the document width.
|
static TranscodingHints.Key |
KEY_FORMAT |
The key to specify whether to format the input.
|
static TranscodingHints.Key |
KEY_NEWLINE |
The key to specify the newline character sequence.
|
static TranscodingHints.Key |
KEY_PUBLIC_ID |
The key to specify the public id.
|
static TranscodingHints.Key |
KEY_SYSTEM_ID |
The key to specify the system id.
|
static TranscodingHints.Key |
KEY_TABULATION_WIDTH |
The key to specify the tabulation width.
|
static 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.
|
handler, hints| Constructor | Description |
|---|---|
SVGTranscoder() |
Creates a new SVGTranscoder.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
prettyPrint(java.io.Reader in,
java.io.Writer out) |
Pretty print the given reader.
|
void |
transcode(TranscoderInput input,
TranscoderOutput output) |
Transcodes the specified input in the specified output.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddTranscodingHint, getErrorHandler, getTranscodingHints, removeTranscodingHint, setErrorHandler, setTranscodingHints, setTranscodingHintsaddTranscodingHint, getErrorHandler, getTranscodingHints, removeTranscodingHint, setErrorHandler, setTranscodingHints, setTranscodingHintspublic static final ErrorHandler DEFAULT_ERROR_HANDLER
public static final TranscodingHints.Key KEY_NEWLINE
public static final SVGTranscoder.NewlineValue VALUE_NEWLINE_CR
public static final SVGTranscoder.NewlineValue VALUE_NEWLINE_CR_LF
public static final SVGTranscoder.NewlineValue VALUE_NEWLINE_LF
public static final TranscodingHints.Key KEY_FORMAT
public static final java.lang.Boolean VALUE_FORMAT_ON
public static final java.lang.Boolean VALUE_FORMAT_OFF
public static final TranscodingHints.Key KEY_TABULATION_WIDTH
public static final TranscodingHints.Key KEY_DOCUMENT_WIDTH
public static final TranscodingHints.Key KEY_DOCTYPE
public static final SVGTranscoder.DoctypeValue VALUE_DOCTYPE_CHANGE
public static final SVGTranscoder.DoctypeValue VALUE_DOCTYPE_REMOVE
public static final SVGTranscoder.DoctypeValue VALUE_DOCTYPE_KEEP_UNCHANGED
public static final TranscodingHints.Key KEY_PUBLIC_ID
public static final TranscodingHints.Key KEY_SYSTEM_ID
public static final TranscodingHints.Key KEY_XML_DECLARATION
public void transcode(TranscoderInput input, TranscoderOutput output) throws TranscoderException
input - the input to transcodeoutput - the ouput where to transcodeTranscoderException - if an error occured while transcodingprotected void prettyPrint(java.io.Reader in,
java.io.Writer out)
throws TranscoderException
TranscoderExceptionCopyright ? 2018 Apache Software Foundation. All Rights Reserved.