org.apache.batik.transcoder
public abstract class XMLAbstractTranscoder extends AbstractTranscoder
Field Summary | |
---|---|
static TranscodingHints.Key | KEY_DOCUMENT_ELEMENT
Document element key.
|
static TranscodingHints.Key | KEY_DOCUMENT_ELEMENT_NAMESPACE_URI
Document element namespace URI key.
|
static TranscodingHints.Key | KEY_DOM_IMPLEMENTATION
DOM Implementation key.
|
static TranscodingHints.Key | KEY_XML_PARSER_CLASSNAME
XML parser classname key.
|
static TranscodingHints.Key | KEY_XML_PARSER_VALIDATING
The validation mode of the XML parser.
|
Constructor Summary | |
---|---|
protected | XMLAbstractTranscoder()
Constructs a new XMLAbstractTranscoder. |
Method Summary | |
---|---|
protected DocumentFactory | createDocumentFactory(DOMImplementation domImpl, String parserClassname)
Creates the DocumentFactory used to create the DOM
tree. |
void | transcode(TranscoderInput input, TranscoderOutput output)
Transcodes the specified XML input in the specified output. |
protected abstract void | transcode(Document document, String uri, TranscoderOutput output)
Transcodes the specified Document in the specified output.
|
Key: |
KEY_DOCUMENT_ELEMENT |
---|---|
Value: |
String |
Default: |
null |
Required: |
Yes |
Description: |
Specify the qualified name of the document type to be created. |
Key: |
KEY_DOCUMENT_ELEMENT_NAMESPACE_URI |
---|---|
Value: |
String |
Default: |
null |
Required: |
Yes |
Description: |
Specify the namespace URI of the document element. |
Key: |
KEY_DOM_IMPLEMENTATION |
---|---|
Value: |
String |
Default: |
null |
Required: |
Yes |
Description: |
Specify the DOM Implementation to use. |
Key: |
KEY_XML_PARSER_CLASSNAME |
---|---|
Value: |
String |
Default: |
null |
Required: |
Yes |
Description: |
Specify the XML parser classname to use. |
Key: |
KEY_XML_PARSER_VALIDATING |
---|---|
Value: |
Boolean |
Default: |
false |
Required: |
No |
Description: |
Specify the validation mode of the XML parser. |
Parameters: domImpl the DOM Implementation to use parserClassname the XML parser classname
Parameters: input the XML input to transcode output the ouput where to transcode
Throws: TranscoderException if an error occured while transcoding
Parameters: document the document to transcode uri the uri of the document or null if any output the ouput where to transcode
Throws: TranscoderException if an error occured while transcoding