wt.query.template
Class SVGPostProcessor

java.lang.Object
  extended bywt.query.template.SVGPostProcessor
All Implemented Interfaces:
ReportPostProcessor

public class SVGPostProcessor
extends Object
implements ReportPostProcessor

This post processor class provides an SVG implementation.

Supported API: true

Extendable: false


Field Summary
private static String CLASSNAME
           
static String FORMAT_PREF_LEAF_NAME
           
private static String JPEG_EXTENSION
           
private static String JPEG_MIME_TYPE
           
private static String PNG_EXTENSION
           
private static String PNG_MIME_TYPE
           
static String RASTERIZER_PREF_NODE
           
private static String RESOURCE
           
 
Fields inherited from interface wt.query.template.ReportPostProcessor
FILE_EXTENSION, OUTPUT_ENCODING, OUTPUT_MEDIA_TYPE
 
Constructor Summary
SVGPostProcessor()
           
 
Method Summary
 String getFileExtension()
          Gets the value of the attribute: fileExtension; File extension

Supported API: true
 String getOutputEncoding()
          Gets the value of the attribute: outputEncoding; Character encoding to be output by post processor.
 String getOutputMediaType()
          Gets the value of the attribute: outputMediaType; MIME type to be output by post processor.
private  XMLReader getXMLReader(SAX2XMLSource source)
          Get a "good enough" XMLReader implementation for the purpose of wrapping a SAX2XMLSource (including XSLTransforms).
 void process(XSLTransform a_transform, OutputStream a_outputStream)
          Execute post-processing by requesting transform output via XSLTransform API and output transform results to output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

RASTERIZER_PREF_NODE

public static final String RASTERIZER_PREF_NODE
See Also:
Constant Field Values

FORMAT_PREF_LEAF_NAME

public static final String FORMAT_PREF_LEAF_NAME
See Also:
Constant Field Values

PNG_MIME_TYPE

private static final String PNG_MIME_TYPE
See Also:
Constant Field Values

JPEG_MIME_TYPE

private static final String JPEG_MIME_TYPE
See Also:
Constant Field Values

PNG_EXTENSION

private static final String PNG_EXTENSION
See Also:
Constant Field Values

JPEG_EXTENSION

private static final String JPEG_EXTENSION
See Also:
Constant Field Values
Constructor Detail

SVGPostProcessor

public SVGPostProcessor()
Method Detail

getOutputMediaType

public String getOutputMediaType()
Gets the value of the attribute: outputMediaType; MIME type to be output by post processor.

Supported API: true

Specified by:
getOutputMediaType in interface ReportPostProcessor
Returns:
String

getOutputEncoding

public String getOutputEncoding()
Gets the value of the attribute: outputEncoding; Character encoding to be output by post processor.

Supported API: true

Specified by:
getOutputEncoding in interface ReportPostProcessor
Returns:
String

getFileExtension

public String getFileExtension()
Gets the value of the attribute: fileExtension; File extension

Supported API: true

Specified by:
getFileExtension in interface ReportPostProcessor
Returns:
String

process

public void process(XSLTransform a_transform,
                    OutputStream a_outputStream)
             throws WTException
Execute post-processing by requesting transform output via XSLTransform API and output transform results to output stream.

Supported API: true

Specified by:
process in interface ReportPostProcessor
Parameters:
a_transform - Transform to use for psot-processing
a_outputStream - Output stream to write results to
Throws:
WTException

getXMLReader

private XMLReader getXMLReader(SAX2XMLSource source)
Get a "good enough" XMLReader implementation for the purpose of wrapping a SAX2XMLSource (including XSLTransforms). Given issues we're having trying to use this, it would appear that this MIGHT not be a good enough XMLReader implementation for this purpose. On the other hand, Batik's XMLReader-based transcoder code paths may not be working properly....