edu.uiuc.ndiipp.hubandspoke.utils.jhove
Class UTFSpecificApplicator

java.lang.Object
  extended by edu.uiuc.ndiipp.hubandspoke.utils.jhove.SpecificApplicator
      extended by edu.uiuc.ndiipp.hubandspoke.utils.jhove.UTFSpecificApplicator

public class UTFSpecificApplicator
extends SpecificApplicator

XSLApplicator for transforming raw Jhove data from UTF8 files.

Author:
Howard Ding
See Also:
SpecificApplicator

Constructor Summary
UTFSpecificApplicator()
           
 
Method Summary
 org.w3c.dom.Node transform(org.w3c.dom.Node jhoveInput)
          Actually perform the transform.
 org.w3c.dom.Node transform(org.w3c.dom.Node jhoveInput, java.lang.String... parameters)
          This class needed to be synchronized because is changes the javax parser DocumentBuilderFactory from the Saxon to the Xerces implementation and then back to Saxon before it returns.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UTFSpecificApplicator

public UTFSpecificApplicator()
Method Detail

transform

public org.w3c.dom.Node transform(org.w3c.dom.Node jhoveInput,
                                  java.lang.String... parameters)
                           throws javax.xml.transform.TransformerConfigurationException,
                                  javax.xml.transform.TransformerException
This class needed to be synchronized because is changes the javax parser DocumentBuilderFactory from the Saxon to the Xerces implementation and then back to Saxon before it returns. Without the synchronization, this property change could cause side effects in XMLBeans, which requires the Saxon implementation of DocumentBuilderFactory.

Parameters:
jhoveInput - The raw Jhove XML to transform
parameters - Variable length. Consists of parameter-name, parameter-value pairs of strings (so should always be an even number) to be passed to the stylesheet.
Returns:
A DOM Node containing the results of the transformation.
Throws:
javax.xml.transform.TransformerConfigurationException
javax.xml.transform.TransformerException

transform

public org.w3c.dom.Node transform(org.w3c.dom.Node jhoveInput)
                           throws javax.xml.transform.TransformerConfigurationException,
                                  javax.xml.transform.TransformerException
Actually perform the transform. This is what clients will presumably use.

Parameters:
jhoveInput - The raw Jhove XML to transform.
Returns:
A DOM Node containing the results of transformation.
Throws:
javax.xml.transform.TransformerConfigurationException
javax.xml.transform.TransformerException


Copyright © 2006, University of Illinois.