Java Doc for XMLInputFactory.java in  » 6.0-JDK-Modules » jsr173-Stax » javax » xml » stream » 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 » 6.0 JDK Modules » jsr173 Stax » javax.xml.stream 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.xml.stream.XMLInputFactory

XMLInputFactory
abstract public class XMLInputFactory (Code)
Defines an abstract implementation of a factory for getting streams. The following table defines the standard properties of this specification. Each property varies in the level of support required by each implementation. The level of support required is described in the 'Required' column.
Configuration parameters
Property Name Behavior Return type Default Value Required
javax.xml.stream.isValidatingTurns on/off implementation specific DTD validationBooleanFalseNo
javax.xml.stream.isNamespaceAwareTurns on/off namespace processing for XML 1.0 supportBooleanTrueTrue (required) / False (optional)
javax.xml.stream.isCoalescingRequires the processor to coalesce adjacent character dataBooleanFalseYes
javax.xml.stream.isReplacingEntityReferencesreplace internal entity references with their replacement text and report them as charactersBooleanTrueYes
javax.xml.stream.isSupportingExternalEntitiesResolve external parsed entitiesBooleanUnspecifiedYes
javax.xml.stream.supportDTDUse this property to request processors that do not support DTDsBooleanTrueYes
javax.xml.stream.reportersets/gets the impl of the XMLReporter javax.xml.stream.XMLReporterNullYes
javax.xml.stream.resolversets/gets the impl of the XMLResolver interfacejavax.xml.stream.XMLResolverNullYes
javax.xml.stream.allocatorsets/gets the impl of the XMLEventAllocator interfacejavax.xml.stream.util.XMLEventAllocatorNullYes

version:
   1.0
author:
   Copyright (c) 2003 by BEA Systems. All Rights Reserved.
See Also:   XMLOutputFactory
See Also:   XMLEventReader
See Also:   XMLStreamReader
See Also:   EventFilter
See Also:   XMLReporter
See Also:   XMLResolver
See Also:   javax.xml.stream.util.XMLEventAllocator


Field Summary
final public static  StringALLOCATOR
    
final public static  StringIS_COALESCING
    
final public static  StringIS_NAMESPACE_AWARE
    
final public static  StringIS_REPLACING_ENTITY_REFERENCES
    
final public static  StringIS_SUPPORTING_EXTERNAL_ENTITIES
    
final public static  StringIS_VALIDATING
    
final public static  StringREPORTER
    
final public static  StringRESOLVER
    
final public static  StringSUPPORT_DTD
    

Constructor Summary
protected  XMLInputFactory()
    

Method Summary
abstract public  XMLStreamReadercreateFilteredReader(XMLStreamReader reader, StreamFilter filter)
    
abstract public  XMLEventReadercreateFilteredReader(XMLEventReader reader, EventFilter filter)
    
abstract public  XMLEventReadercreateXMLEventReader(java.io.Reader reader)
    
abstract public  XMLEventReadercreateXMLEventReader(String systemId, java.io.Reader reader)
    
abstract public  XMLEventReadercreateXMLEventReader(XMLStreamReader reader)
     Create a new XMLEventReader from an XMLStreamReader.
abstract public  XMLEventReadercreateXMLEventReader(Source source)
     Create a new XMLEventReader from a JAXP source.
abstract public  XMLEventReadercreateXMLEventReader(java.io.InputStream stream)
    
abstract public  XMLEventReadercreateXMLEventReader(java.io.InputStream stream, String encoding)
    
abstract public  XMLEventReadercreateXMLEventReader(String systemId, java.io.InputStream stream)
    
abstract public  XMLStreamReadercreateXMLStreamReader(java.io.Reader reader)
    
abstract public  XMLStreamReadercreateXMLStreamReader(Source source)
     Create a new XMLStreamReader from a JAXP source.
abstract public  XMLStreamReadercreateXMLStreamReader(java.io.InputStream stream)
    
abstract public  XMLStreamReadercreateXMLStreamReader(java.io.InputStream stream, String encoding)
    
abstract public  XMLStreamReadercreateXMLStreamReader(String systemId, java.io.InputStream stream)
    
abstract public  XMLStreamReadercreateXMLStreamReader(String systemId, java.io.Reader reader)
    
abstract public  XMLEventAllocatorgetEventAllocator()
    
abstract public  ObjectgetProperty(java.lang.String name)
    
abstract public  XMLReportergetXMLReporter()
     The reporter that will be set on any XMLStreamReader or XMLEventReader created by this factory instance.
abstract public  XMLResolvergetXMLResolver()
     The resolver that will be set on any XMLStreamReader or XMLEventReader created by this factory instance.
abstract public  booleanisPropertySupported(String name)
     Query the set of properties that this factory supports.
public static  XMLInputFactorynewInstance()
     Create a new instance of the factory. This static method creates a new factory instance.
public static  XMLInputFactorynewInstance(String factoryId, ClassLoader classLoader)
    
abstract public  voidsetEventAllocator(XMLEventAllocator allocator)
    
abstract public  voidsetProperty(java.lang.String name, Object value)
     Allows the user to set specific feature/property on the underlying implementation.
abstract public  voidsetXMLReporter(XMLReporter reporter)
     The reporter that will be set on any XMLStreamReader or XMLEventReader created by this factory instance.
abstract public  voidsetXMLResolver(XMLResolver resolver)
     The resolver that will be set on any XMLStreamReader or XMLEventReader created by this factory instance.

Field Detail
ALLOCATOR
final public static String ALLOCATOR(Code)
The property used to set/get the implementation of the allocator



IS_COALESCING
final public static String IS_COALESCING(Code)
The property that requires the parser to coalesce adjacent character data sections



IS_NAMESPACE_AWARE
final public static String IS_NAMESPACE_AWARE(Code)
The property used to turn on/off namespace support, this is to support XML 1.0 documents, only the true setting must be supported



IS_REPLACING_ENTITY_REFERENCES
final public static String IS_REPLACING_ENTITY_REFERENCES(Code)
Requires the parser to replace internal entity references with their replacement text and report them as characters



IS_SUPPORTING_EXTERNAL_ENTITIES
final public static String IS_SUPPORTING_EXTERNAL_ENTITIES(Code)
The property that requires the parser to resolve external parsed entities



IS_VALIDATING
final public static String IS_VALIDATING(Code)
The property used to turn on/off implementation specific validation



REPORTER
final public static String REPORTER(Code)
The property used to set/get the implementation of the XMLReporter interface



RESOLVER
final public static String RESOLVER(Code)
The property used to set/get the implementation of the XMLResolver



SUPPORT_DTD
final public static String SUPPORT_DTD(Code)
The property that requires the parser to support DTDs




Constructor Detail
XMLInputFactory
protected XMLInputFactory()(Code)




Method Detail
createFilteredReader
abstract public XMLStreamReader createFilteredReader(XMLStreamReader reader, StreamFilter filter) throws XMLStreamException(Code)
Create a filtered reader that wraps the filter around the reader
Parameters:
  reader - the reader to filter
Parameters:
  filter - the filter to apply to the reader
throws:
  XMLStreamException -



createFilteredReader
abstract public XMLEventReader createFilteredReader(XMLEventReader reader, EventFilter filter) throws XMLStreamException(Code)
Create a filtered event reader that wraps the filter around the event reader
Parameters:
  reader - the event reader to wrap
Parameters:
  filter - the filter to apply to the event reader
throws:
  XMLStreamException -



createXMLEventReader
abstract public XMLEventReader createXMLEventReader(java.io.Reader reader) throws XMLStreamException(Code)
Create a new XMLEventReader from a reader
Parameters:
  reader - the XML data to read from
throws:
  XMLStreamException -



createXMLEventReader
abstract public XMLEventReader createXMLEventReader(String systemId, java.io.Reader reader) throws XMLStreamException(Code)
Create a new XMLEventReader from a reader
Parameters:
  systemId - the system ID of the input
Parameters:
  reader - the XML data to read from
throws:
  XMLStreamException -



createXMLEventReader
abstract public XMLEventReader createXMLEventReader(XMLStreamReader reader) throws XMLStreamException(Code)
Create a new XMLEventReader from an XMLStreamReader. After being used to construct the XMLEventReader instance returned from this method the XMLStreamReader must not be used.
Parameters:
  reader - the XMLStreamReader to read from (may not be modified) a new XMLEventReader
throws:
  XMLStreamException -



createXMLEventReader
abstract public XMLEventReader createXMLEventReader(Source source) throws XMLStreamException(Code)
Create a new XMLEventReader from a JAXP source. Support of this method is optional.
Parameters:
  source - the source to read from
throws:
  UnsupportedOperationException - if this method is not supported by this XMLInputFactory



createXMLEventReader
abstract public XMLEventReader createXMLEventReader(java.io.InputStream stream) throws XMLStreamException(Code)
Create a new XMLEventReader from a java.io.InputStream
Parameters:
  stream - the InputStream to read from
throws:
  XMLStreamException -



createXMLEventReader
abstract public XMLEventReader createXMLEventReader(java.io.InputStream stream, String encoding) throws XMLStreamException(Code)
Create a new XMLEventReader from a java.io.InputStream
Parameters:
  stream - the InputStream to read from
Parameters:
  encoding - the character encoding of the stream
throws:
  XMLStreamException -



createXMLEventReader
abstract public XMLEventReader createXMLEventReader(String systemId, java.io.InputStream stream) throws XMLStreamException(Code)
Create a new XMLEventReader from a java.io.InputStream
Parameters:
  systemId - the system ID of the stream
Parameters:
  stream - the InputStream to read from
throws:
  XMLStreamException -



createXMLStreamReader
abstract public XMLStreamReader createXMLStreamReader(java.io.Reader reader) throws XMLStreamException(Code)
Create a new XMLStreamReader from a reader
Parameters:
  reader - the XML data to read from
throws:
  XMLStreamException -



createXMLStreamReader
abstract public XMLStreamReader createXMLStreamReader(Source source) throws XMLStreamException(Code)
Create a new XMLStreamReader from a JAXP source. This method is optional.
Parameters:
  source - the source to read from
throws:
  UnsupportedOperationException - if this method is not supported by this XMLInputFactory
throws:
  XMLStreamException -



createXMLStreamReader
abstract public XMLStreamReader createXMLStreamReader(java.io.InputStream stream) throws XMLStreamException(Code)
Create a new XMLStreamReader from a java.io.InputStream
Parameters:
  stream - the InputStream to read from
throws:
  XMLStreamException -



createXMLStreamReader
abstract public XMLStreamReader createXMLStreamReader(java.io.InputStream stream, String encoding) throws XMLStreamException(Code)
Create a new XMLStreamReader from a java.io.InputStream
Parameters:
  stream - the InputStream to read from
Parameters:
  encoding - the character encoding of the stream
throws:
  XMLStreamException -



createXMLStreamReader
abstract public XMLStreamReader createXMLStreamReader(String systemId, java.io.InputStream stream) throws XMLStreamException(Code)
Create a new XMLStreamReader from a java.io.InputStream
Parameters:
  systemId - the system ID of the stream
Parameters:
  stream - the InputStream to read from



createXMLStreamReader
abstract public XMLStreamReader createXMLStreamReader(String systemId, java.io.Reader reader) throws XMLStreamException(Code)
Create a new XMLStreamReader from a java.io.InputStream
Parameters:
  systemId - the system ID of the stream
Parameters:
  reader - the InputStream to read from



getEventAllocator
abstract public XMLEventAllocator getEventAllocator()(Code)
Gets the allocator used by streams created with this factory



getProperty
abstract public Object getProperty(java.lang.String name) throws java.lang.IllegalArgumentException(Code)
Get the value of a feature/property from the underlying implementation
Parameters:
  name - The name of the property (may not be null) The value of the property
throws:
  IllegalArgumentException - if the property is not supported



getXMLReporter
abstract public XMLReporter getXMLReporter()(Code)
The reporter that will be set on any XMLStreamReader or XMLEventReader created by this factory instance.



getXMLResolver
abstract public XMLResolver getXMLResolver()(Code)
The resolver that will be set on any XMLStreamReader or XMLEventReader created by this factory instance.



isPropertySupported
abstract public boolean isPropertySupported(String name)(Code)
Query the set of properties that this factory supports.
Parameters:
  name - The name of the property (may not be null) true if the property is supported and false otherwise



newInstance
public static XMLInputFactory newInstance() throws FactoryConfigurationError(Code)
Create a new instance of the factory. This static method creates a new factory instance. This method uses the following ordered lookup procedure to determine the XMLInputFactory implementation class to load: Use the javax.xml.stream.XMLInputFactory system property. Use the properties file "lib/stax.properties" in the JRE directory. This configuration file is in standard java.util.Properties format and contains the fully qualified name of the implementation class with the key being the system property defined above. Use the Services API (as detailed in the JAR specification), if available, to determine the classname. The Services API will look for a classname in the file META-INF/services/javax.xml.stream.XMLInputFactory in jars available to the runtime. Platform default XMLInputFactory instance. Once an application has obtained a reference to a XMLInputFactory it can use the factory to configure and obtain stream instances.
throws:
  FactoryConfigurationError - if an instance of this factory cannot be loaded



newInstance
public static XMLInputFactory newInstance(String factoryId, ClassLoader classLoader) throws FactoryConfigurationError(Code)
Create a new instance of the factory
Parameters:
  factoryId - Name of the factory to find, same asa property name
Parameters:
  classLoader - classLoader to use the factory implementation
throws:
  FactoryConfigurationError - if an instance of this factory cannot be loaded



setEventAllocator
abstract public void setEventAllocator(XMLEventAllocator allocator)(Code)
Set a user defined event allocator for events
Parameters:
  allocator - the user defined allocator



setProperty
abstract public void setProperty(java.lang.String name, Object value) throws java.lang.IllegalArgumentException(Code)
Allows the user to set specific feature/property on the underlying implementation. The underlying implementation is not required to support every setting of every property in the specification and may use IllegalArgumentException to signal that an unsupported property may not be set with the specified value.
Parameters:
  name - The name of the property (may not be null)
Parameters:
  value - The value of the property
throws:
  java.lang.IllegalArgumentException - if the property is not supported



setXMLReporter
abstract public void setXMLReporter(XMLReporter reporter)(Code)
The reporter that will be set on any XMLStreamReader or XMLEventReader created by this factory instance.
Parameters:
  reporter - the resolver to use to report non fatal errors



setXMLResolver
abstract public void setXMLResolver(XMLResolver resolver)(Code)
The resolver that will be set on any XMLStreamReader or XMLEventReader created by this factory instance.
Parameters:
  resolver - the resolver to use to resolve references



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.