Java Doc for DOMFactory.java in  » Database-DBMS » Ozone-1.1 » org » ozoneDB » xml » 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 » Database DBMS » Ozone 1.1 » org.ozoneDB.xml 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.ozoneDB.xml.DOMFactory

All known Subclasses:   org.ozoneDB.xml.OOXMLDOMFactory,
DOMFactory
public class DOMFactory extends java.lang.Object (Code)


Field Summary
final public static  ClassDOCUMENT_DTD
     DTD document class.
final public static  ClassDOCUMENT_HTML
     HTML document class.
final public static  ClassDOCUMENT_XML
     XML document class.


Method Summary
public static  DTDDocumentcreateDTDDocument()
     Creates and returns a new DTD document.
public static  DocumentcreateDocument(Class docClass)
     Creates and returns a new XML/HTML/DTD document.
public static  HTMLDocumentcreateHTMLDocument()
     Creates and returns a new HTML document.
public static  ParsercreateParser(Reader reader, String sourceURI, Class docClass)
     Creates and returns a new XML/HTML/DTD parser.
public static  ParsercreateParser(Reader reader, String sourceName)
     Creates and returns a new XML parser.
public static  ParsercreateParser(InputStream stream, String sourceName, Class docClass)
     Creates and returns a new XML/HTML/DTD parser.
public static  ParsercreateParser(InputStream stream, String sourceName)
     Creates and returns a new XML parser.
public static  PrintercreatePrinter(Writer writer, int mode, Class docClass)
     Creates and returns a new XML/HTML/DTD printer.
public static  PrintercreatePrinter(Writer writer, int mode)
     Creates and returns a new XML printer.
public static  PrintercreatePrinter(OutputStream stream, int mode, Class docClass)
     Creates and returns a new XML/HTML/DTD printer.
public static  PrintercreatePrinter(OutputStream stream, int mode)
     Creates and returns a new XML printer.
public static  DocumentcreateXMLDocument()
     Creates and returns a new XML document.
public static  ClassgetDocClass(Class docClass)
     Returns the specified document class, or the properties file specified class, or the default.
public static  HolderFindergetHolderFinder()
     Returns a singleton holder finder.
public static  PropertiesgetProperties()
     Returns the properties list from the OpenXML properties file.
public static  StringgetProperty(String name)
     Returns the property from the OpenXML properties file.
public static  SourcenewSource()
    

Field Detail
DOCUMENT_DTD
final public static Class DOCUMENT_DTD(Code)
DTD document class. Can be used to request a new DTD document, DTD parser or DTD printer. Will produce a document of type DTDDocument .



DOCUMENT_HTML
final public static Class DOCUMENT_HTML(Code)
HTML document class. Can be used to request a new HTML document, HTML parser or HTML printer. Will produce a document of type HTMLDocument .



DOCUMENT_XML
final public static Class DOCUMENT_XML(Code)
XML document class. Can be used to request a new XML document, XML parser or XML printer. Will produce a document of type Document .





Method Detail
createDTDDocument
public static DTDDocument createDTDDocument()(Code)
Creates and returns a new DTD document. The document type is DTDDocument . A new DTD document
See Also:   DTDDocument



createDocument
public static Document createDocument(Class docClass)(Code)
Creates and returns a new XML/HTML/DTD document. The document type is based on docClass, which dictates whether the document is XML, HTML or DTD. If docClass is null, the class type is read from the property openxml.document.class, and if that property is missing, the default Document is used.

Note that the returned document type may or may not be Document , but it must extend Document , and that is also true for non-XML documents. A new XML/HTML/DTD document
See Also:   Document




createHTMLDocument
public static HTMLDocument createHTMLDocument()(Code)
Creates and returns a new HTML document. The document type is HTMLDocument . A new XML document
See Also:   HTMLDocument



createParser
public static Parser createParser(Reader reader, String sourceURI, Class docClass)(Code)
Creates and returns a new XML/HTML/DTD parser. The parser type is determined by the document class provided in docClass, which dictates whether the parser is XML, HTML or DTD. If docClass is null, the same rules that govern DOMFactory.createDocument apply here.

The parser is only guaranteed to extend Parser and will use DOMFactory.createDocument to create an instance of the parsed document. To create a document of a user class, either use Source , or the following code:

 Parser    parser;
 parser = DOMFactory.createParser( reader, sourceURI, docClass );
 if ( parser instanceof XMLParser )
 doc = ( (XMLParser) parser ).parseDocument( null, docClass );
 else
 doc = parser.parseDocument();
 

Parameters:
  reader - A reader to the document source
Parameters:
  sourceURI - The source URI
Parameters:
  docClass - The requested document type A new parser



createParser
public static Parser createParser(Reader reader, String sourceName) throws IOException(Code)
Creates and returns a new XML parser.
Parameters:
  reader - A reader to the document source
Parameters:
  sourceURI - The source URI A new parser



createParser
public static Parser createParser(InputStream stream, String sourceName, Class docClass) throws IOException(Code)
Creates and returns a new XML/HTML/DTD parser. The parser type is determined by the document class provided in docClass, which dictates whether the parser is XML, HTML or DTD. If docClass is null, the same rules that govern DOMFactory.createDocument apply here.

The parser is only guaranteed to extend Parser and will use DOMFactory.createDocument to create an instance of the parsed document. To create a document of a user class, either use Source , or the following code:

 Parser    parser;
 parser = DOMFactory.createParser( reader, sourceURI, docClass );
 if ( parser instanceof XMLParser )
 doc = ( (XMLParser) parser ).parseDocument( null, docClass );
 else
 doc = parser.parseDocument();
 

Parameters:
  input - An input stream to the document source
Parameters:
  sourceURI - The source URI
Parameters:
  docClass - The requested document type A new parser



createParser
public static Parser createParser(InputStream stream, String sourceName) throws IOException(Code)
Creates and returns a new XML parser.
Parameters:
  input - An input stream to the document source
Parameters:
  sourceURI - The source URI A new parser



createPrinter
public static Printer createPrinter(Writer writer, int mode, Class docClass) throws IOException(Code)
Creates and returns a new XML/HTML/DTD printer. The printer type is determined by the document class provided in docClass, which dictates whether the printer is XML, HTML or DTD. If docClass is null, the same rules that govern DOMFactory.createDocument apply here.
Parameters:
  writer - A writer for the document output
Parameters:
  mode - The printing mode
Parameters:
  docClass - The document type A new printer



createPrinter
public static Printer createPrinter(Writer writer, int mode) throws IOException(Code)
Creates and returns a new XML printer.
Parameters:
  writer - A writer for the document output
Parameters:
  mode - The printing mode A new printer



createPrinter
public static Printer createPrinter(OutputStream stream, int mode, Class docClass) throws IOException(Code)
Creates and returns a new XML/HTML/DTD printer. The printer type is determined by the document class provided in docClass, which dictates whether the printer is XML, HTML or DTD. If docClass is null, the same rules that govern DOMFactory.createDocument apply here.
Parameters:
  output - A stream for the document output
Parameters:
  mode - The printing mode
Parameters:
  docClass - The document type A new printer



createPrinter
public static Printer createPrinter(OutputStream stream, int mode) throws IOException(Code)
Creates and returns a new XML printer.
Parameters:
  output - A stream for the document output
Parameters:
  mode - The printing mode A new printer



createXMLDocument
public static Document createXMLDocument()(Code)
Creates and returns a new XML document. The document type is Document . A new XML document
See Also:   Document



getDocClass
public static Class getDocClass(Class docClass)(Code)
Returns the specified document class, or the properties file specified class, or the default. If the specified document class is not valid, a runtime exception is thrown. If the specified class is null, the name is read from the properties file and used as the based class. If that property is missing or not a valid class, the default document class ( Document ) is used.
Parameters:
  docClass - The specified document class, or null A valid document class, extending Document



getHolderFinder
public static HolderFinder getHolderFinder()(Code)
Returns a singleton holder finder. This finder has default holder factories registered for handling network, file, JAR and CLASSPATH document sources, and mapping for built-in DTDs. Additional holder factories and Xcatalogs may be specified in the properties file and are loaded and registered the first time this method is called. An holder finder



getProperties
public static Properties getProperties()(Code)
Returns the properties list from the OpenXML properties file. If this property list is changed, changes will affect the behavior of the factory and other OpenXML elements. The properties list



getProperty
public static String getProperty(String name)(Code)
Returns the property from the OpenXML properties file.
Parameters:
  name - The property name Property value or null



newSource
public static Source newSource()(Code)



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.