Java Doc for TransformerFactoryImpl.java in  » XML » XPath-Saxon » net » sf » saxon » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » XML » XPath Saxon » net.sf.saxon 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.xml.transform.TransformerFactory
      javax.xml.transform.sax.SAXTransformerFactory
         net.sf.saxon.TransformerFactoryImpl

TransformerFactoryImpl
public class TransformerFactoryImpl extends SAXTransformerFactory (Code)
A TransformerFactoryImpl instance can be used to create Transformer and Template objects.

The system property that determines which Factory implementation to create is named "javax.xml.transform.TransformerFactory". This property names a concrete subclass of the TransformerFactory abstract class. If the property is not defined, a platform default is be used.

This implementation class implements the abstract methods on both the javax.xml.transform.TransformerFactory and javax.xml.transform.sax.SAXTransformerFactory classes.




Constructor Summary
public  TransformerFactoryImpl()
     Default constructor.
public  TransformerFactoryImpl(Configuration config)
     Construct a TransformerFactory using an existing Configuration.

Method Summary
public  SourcegetAssociatedStylesheet(Source source, String media, String title, String charset)
     Get the stylesheet specification(s) associated via the xml-stylesheet processing instruction (see http://www.w3.org/TR/xml-stylesheet/) with the document document specified in the source parameter, and that match the given criteria.
public  ObjectgetAttribute(String name)
     Allows the user to retrieve specific attributes on the underlying implementation.
Parameters:
  name - The name of the attribute.
public  ConfigurationgetConfiguration()
    
public  ErrorListenergetErrorListener()
     Get the error event handler for the TransformerFactory.
public  booleangetFeature(String name)
     Look up the value of a feature.

The feature name is any absolute URI.


Parameters:
  name - The feature name, which is an absolute URI.
public  URIResolvergetURIResolver()
     Get the object that is used by default during the transformation to resolve URIs used in document(), xsl:import, or xsl:include.
public  TemplatesnewTemplates(Source source)
     Process the Source into a Templates object, which is a a compiled representation of the source.
public  TemplatesHandlernewTemplatesHandler()
     Get a TemplatesHandler object that can process SAX ContentHandler events into a Templates object.
public  TransformernewTransformer(Source source)
     Process the Source into a Transformer object.
public  TransformernewTransformer()
     Create a new Transformer object that performs a copy of the source to the result.
public  TransformerHandlernewTransformerHandler(Source src)
     Get a TransformerHandler object that can process SAX ContentHandler events into a Result, based on the transformation instructions specified by the argument.
Parameters:
  src - The Source of the transformation instructions.
public  TransformerHandlernewTransformerHandler(Templates templates)
     Get a TransformerHandler object that can process SAX ContentHandler events into a Result, based on the Templates argument.
Parameters:
  templates - The compiled transformation instructions.
public  TransformerHandlernewTransformerHandler()
     Get a TransformerHandler object that can process SAX ContentHandler events into a Result.
public  XMLFilternewXMLFilter(Source src)
     Create an XMLFilter that uses the given Source as the transformation instructions.
Parameters:
  src - The Source of the transformation instructions.
public  XMLFilternewXMLFilter(Templates templates)
     Create an XMLFilter, based on the Templates argument..
Parameters:
  templates - The compiled transformation instructions.
public  voidsetAttribute(String name, Object value)
     Allows the user to set specific attributes on the underlying implementation.
public  voidsetConfiguration(Configuration config)
    
public  voidsetErrorListener(ErrorListener listener)
     Set the error event listener for the TransformerFactory, which is used for the processing of transformation instructions, and not for the transformation itself.
public  voidsetFeature(String name, boolean value)
    

Set a feature for this TransformerFactory and Transformers or Templates created by this factory.

Feature names are fully qualified java.net.URI s. Implementations may define their own features. An javax.xml.transform.TransformerConfigurationException is thrown if this TransformerFactory or the Transformers or Templates it creates cannot support the feature. It is possible for an TransformerFactory to expose a feature value but be unable to change its state.

All implementations are required to support the FEATURE_SECURE_PROCESSING feature. When the feature is:

public  voidsetURIResolver(URIResolver resolver)
     Set an object that is used by default during the transformation to resolve URIs used in xsl:import, or xsl:include.


Constructor Detail
TransformerFactoryImpl
public TransformerFactoryImpl()(Code)
Default constructor.



TransformerFactoryImpl
public TransformerFactoryImpl(Configuration config)(Code)
Construct a TransformerFactory using an existing Configuration.




Method Detail
getAssociatedStylesheet
public Source getAssociatedStylesheet(Source source, String media, String title, String charset) throws TransformerConfigurationException(Code)
Get the stylesheet specification(s) associated via the xml-stylesheet processing instruction (see http://www.w3.org/TR/xml-stylesheet/) with the document document specified in the source parameter, and that match the given criteria. Note that it is possible to return several stylesheets, in which case they are applied as if they were a list of imports or cascades.
Parameters:
  source - The XML source document.
Parameters:
  media - The media attribute to be matched. May be null, in whichcase the prefered templates will be used (i.e. alternate = no).
Parameters:
  title - The value of the title attribute to match. May be null.
Parameters:
  charset - The value of the charset attribute to match. May be null. A Source object suitable for passing to the TransformerFactory.
throws:
  TransformerConfigurationException - if any problems occur



getAttribute
public Object getAttribute(String name) throws IllegalArgumentException(Code)
Allows the user to retrieve specific attributes on the underlying implementation.
Parameters:
  name - The name of the attribute. value The value of the attribute.
throws:
  IllegalArgumentException - thrown if the underlyingimplementation doesn't recognize the attribute.



getConfiguration
public Configuration getConfiguration()(Code)
Get the configuration (en bloc)



getErrorListener
public ErrorListener getErrorListener()(Code)
Get the error event handler for the TransformerFactory. The current error listener, which should never be null.



getFeature
public boolean getFeature(String name)(Code)
Look up the value of a feature.

The feature name is any absolute URI.


Parameters:
  name - The feature name, which is an absolute URI. The current state of the feature (true or false).



getURIResolver
public URIResolver getURIResolver()(Code)
Get the object that is used by default during the transformation to resolve URIs used in document(), xsl:import, or xsl:include. The URIResolver that was set with setURIResolver.



newTemplates
public Templates newTemplates(Source source) throws TransformerConfigurationException(Code)
Process the Source into a Templates object, which is a a compiled representation of the source. This Templates object may then be used concurrently across multiple threads. Creating a Templates object allows the TransformerFactory to do detailed performance optimization of transformation instructions, without penalizing runtime transformation.
Parameters:
  source - An object that holds a URL, input stream, etc. A Templates object capable of being used for transformation purposes,never null.
exception:
  TransformerConfigurationException - May throw this during the parse when itis constructing the Templates object and fails.



newTemplatesHandler
public TemplatesHandler newTemplatesHandler() throws TransformerConfigurationException(Code)
Get a TemplatesHandler object that can process SAX ContentHandler events into a Templates object. A non-null reference to a TransformerHandler, that maybe used as a ContentHandler for SAX parse events.
throws:
  TransformerConfigurationException - If for some reason theTemplatesHandler cannot be created.



newTransformer
public Transformer newTransformer(Source source) throws TransformerConfigurationException(Code)
Process the Source into a Transformer object. Care must be given not to use this object in multiple threads running concurrently. Different TransformerFactories can be used concurrently by different threads.
Parameters:
  source - An object that holds a URI, input stream, etc. A Transformer object that may be used to perform a transformationin a single thread, never null.
exception:
  TransformerConfigurationException - May throw this during the parsewhen it is constructing the Templates object and fails.



newTransformer
public Transformer newTransformer() throws TransformerConfigurationException(Code)
Create a new Transformer object that performs a copy of the source to the result. A Transformer object that may be used to perform a transformationin a single thread, never null.
exception:
  TransformerConfigurationException - May throw this duringthe parse when it is constructing theTemplates object and fails.



newTransformerHandler
public TransformerHandler newTransformerHandler(Source src) throws TransformerConfigurationException(Code)
Get a TransformerHandler object that can process SAX ContentHandler events into a Result, based on the transformation instructions specified by the argument.
Parameters:
  src - The Source of the transformation instructions. TransformerHandler ready to transform SAX events.
throws:
  TransformerConfigurationException - If for some reason theTransformerHandler can not be created.



newTransformerHandler
public TransformerHandler newTransformerHandler(Templates templates) throws TransformerConfigurationException(Code)
Get a TransformerHandler object that can process SAX ContentHandler events into a Result, based on the Templates argument.
Parameters:
  templates - The compiled transformation instructions. TransformerHandler ready to transform SAX events.
throws:
  TransformerConfigurationException - If for some reason theTransformerHandler can not be created.



newTransformerHandler
public TransformerHandler newTransformerHandler() throws TransformerConfigurationException(Code)
Get a TransformerHandler object that can process SAX ContentHandler events into a Result. The transformation is defined as an identity (or copy) transformation, for example to copy a series of SAX parse events into a DOM tree. A non-null reference to a TransformerHandler, that maybe used as a ContentHandler for SAX parse events.
throws:
  TransformerConfigurationException - If for some reason theTransformerHandler cannot be created.



newXMLFilter
public XMLFilter newXMLFilter(Source src) throws TransformerConfigurationException(Code)
Create an XMLFilter that uses the given Source as the transformation instructions.
Parameters:
  src - The Source of the transformation instructions. An XMLFilter object, or null if this feature is not supported.
throws:
  TransformerConfigurationException - If for some reason theXMLFilter cannot be created.



newXMLFilter
public XMLFilter newXMLFilter(Templates templates) throws TransformerConfigurationException(Code)
Create an XMLFilter, based on the Templates argument..
Parameters:
  templates - The compiled transformation instructions. An XMLFilter object, or null if this feature is not supported.
throws:
  TransformerConfigurationException - If for some reason theXMLFilter cannot be created.



setAttribute
public void setAttribute(String name, Object value) throws IllegalArgumentException(Code)
Allows the user to set specific attributes on the underlying implementation. An attribute in this context is defined to be an option that the implementation provides.
Parameters:
  name - The name of the attribute. This must be one of the constantsdefined in class net.sf.saxon.FeatureKeys.
Parameters:
  value - The value of the attribute.
throws:
  IllegalArgumentException - thrown if Saxondoesn't recognize the attribute.
See Also:   net.sf.saxon.FeatureKeys



setConfiguration
public void setConfiguration(Configuration config)(Code)
Set the configuration (en bloc)



setErrorListener
public void setErrorListener(ErrorListener listener) throws IllegalArgumentException(Code)
Set the error event listener for the TransformerFactory, which is used for the processing of transformation instructions, and not for the transformation itself.
Parameters:
  listener - The new error listener.
throws:
  IllegalArgumentException - if listener is null.



setFeature
public void setFeature(String name, boolean value) throws TransformerConfigurationException(Code)

Set a feature for this TransformerFactory and Transformers or Templates created by this factory.

Feature names are fully qualified java.net.URI s. Implementations may define their own features. An javax.xml.transform.TransformerConfigurationException is thrown if this TransformerFactory or the Transformers or Templates it creates cannot support the feature. It is possible for an TransformerFactory to expose a feature value but be unable to change its state.

All implementations are required to support the FEATURE_SECURE_PROCESSING feature. When the feature is:


Parameters:
  name - Feature name.
Parameters:
  value - Is feature state true or false.
throws:
  javax.xml.transform.TransformerConfigurationException - if this TransformerFactoryor the Transformers or Templates it creates cannot support this feature.
throws:
  NullPointerException - If the name parameter is null.



setURIResolver
public void setURIResolver(URIResolver resolver)(Code)
Set an object that is used by default during the transformation to resolve URIs used in xsl:import, or xsl:include.
Parameters:
  resolver - An object that implements the URIResolver interface,or null.



Fields inherited from javax.xml.transform.sax.SAXTransformerFactory
final public static String FEATURE(Code)(Java Doc)
final public static String FEATURE_XMLFILTER(Code)(Java Doc)

Methods inherited from javax.xml.transform.sax.SAXTransformerFactory
abstract public TemplatesHandler newTemplatesHandler() throws TransformerConfigurationException(Code)(Java Doc)
abstract public TransformerHandler newTransformerHandler(Source src) throws TransformerConfigurationException(Code)(Java Doc)
abstract public TransformerHandler newTransformerHandler(Templates templates) throws TransformerConfigurationException(Code)(Java Doc)
abstract public TransformerHandler newTransformerHandler() throws TransformerConfigurationException(Code)(Java Doc)
abstract public XMLFilter newXMLFilter(Source src) throws TransformerConfigurationException(Code)(Java Doc)
abstract public XMLFilter newXMLFilter(Templates templates) throws TransformerConfigurationException(Code)(Java Doc)

Methods inherited from javax.xml.transform.TransformerFactory
abstract public Source getAssociatedStylesheet(Source source, String media, String title, String charset) throws TransformerConfigurationException(Code)(Java Doc)
abstract public Object getAttribute(String name)(Code)(Java Doc)
abstract public ErrorListener getErrorListener()(Code)(Java Doc)
abstract public boolean getFeature(String name)(Code)(Java Doc)
abstract public URIResolver getURIResolver()(Code)(Java Doc)
public static TransformerFactory newInstance() throws TransformerFactoryConfigurationError(Code)(Java Doc)
public static TransformerFactory newInstance(String factoryClassName, ClassLoader classLoader) throws TransformerFactoryConfigurationError(Code)(Java Doc)
abstract public Templates newTemplates(Source source) throws TransformerConfigurationException(Code)(Java Doc)
abstract public Transformer newTransformer(Source source) throws TransformerConfigurationException(Code)(Java Doc)
abstract public Transformer newTransformer() throws TransformerConfigurationException(Code)(Java Doc)
abstract public void setAttribute(String name, Object value)(Code)(Java Doc)
abstract public void setErrorListener(ErrorListener listener)(Code)(Java Doc)
abstract public void setFeature(String name, boolean value) throws TransformerConfigurationException(Code)(Java Doc)
abstract public void setURIResolver(URIResolver resolver)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.