stax.properties.sample 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. #
  2. #=========================================================================
  3. #
  4. # XL XML Processor for Java
  5. # Licensed Materials - Property of IBM
  6. # (C) Copyright IBM Corp. 2006. All Rights Reserved.
  7. # US Government Users Restricted Rights - Use, duplication or disclosure
  8. # restricted by GSA ADP Schedule Contract with IBM Corp.
  9. #
  10. #=========================================================================
  11. # Copyright 2004 The Apache Software Foundation.
  12. #
  13. # Licensed under the Apache License, Version 2.0 (the "License");
  14. # you may not use this file except in compliance with the License.
  15. # You may obtain a copy of the License at
  16. #
  17. # http://www.apache.org/licenses/LICENSE-2.0
  18. #
  19. # Unless required by applicable law or agreed to in writing, software
  20. # distributed under the License is distributed on an "AS IS" BASIS,
  21. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  22. # See the License for the specific language governing permissions and
  23. # limitations under the License.
  24. #=========================================================================
  25. #
  26. # StAX provides a mechanism for applications to parse and serialize
  27. # XML documents independent of any given XML processing implementation.
  28. # An application can swap between different implementations without
  29. # having to change any code. This is accomplished, in part by using
  30. # "Factory Finders" to locate a particular implementation, using a
  31. # prescribed ordered lookup procedure.
  32. #
  33. # The IBM XL XML Processor for Java uses the following procedure to
  34. # determine which implementations to use for the XMLInputFactory,
  35. # XMLOutputFactory and XMLEventFactory.
  36. #
  37. # * first, it will examine the system properties for the
  38. # following keys:
  39. # - javax.xml.stream.XMLInputFactory
  40. # - javax.xml.stream.XMLOutputFactory
  41. # - javax.xml.stream.XMLEventFactory
  42. # * next, it will try to find a file called stax.properties in
  43. # the lib subdirectory of your JRE installation and look
  44. # for the keys above
  45. # * next, it will examine all the jars on your classpath to
  46. # try and find one with the appropriate entries in its
  47. # META-INF/services directory
  48. # * if all else fails, it will use a hardcoded default. The
  49. # defaults for the XL XML Processor for Java are:
  50. # - com.ibm.xml.xlxp.api.stax.XMLInputFactoryImpl
  51. # - com.ibm.xml.xlxp.api.stax.XMLOutputFactoryImpl
  52. # - com.ibm.xml.xlxp.api.stax.XMLEventFactoryImpl
  53. #
  54. # The third step can be quite time-consuming, especially if you
  55. # have a lot of jars on your classpath and run applications which
  56. # require the creation of lots of transformer and parser factories.
  57. #
  58. # To improve XML parsing and processing performance, rename this
  59. # file to stax.properties and copy it into your JRE's lib directory.
  60. # You will also need to uncomment the entries below that you want
  61. # to use.
  62. #
  63. # ====================================================================
  64. #
  65. #javax.xml.stream.XMLInputFactory=com.ibm.xml.xlxp.api.stax.XMLInputFactoryImpl
  66. #javax.xml.stream.XMLOutputFactory=com.ibm.xml.xlxp.api.stax.XMLOutputFactoryImpl
  67. #javax.xml.stream.XMLEventFactory=com.ibm.xml.xlxp.api.stax.XMLEventFactoryImpl