|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.document.DocumentFactory
Default factory for creating instances of IDocument.
Constructor Summary | |
DocumentFactory()
|
Method Summary | |
static IDocument |
createDocument()
Create a blank document. |
static IDocument |
createDocument(Document document)
Create a document using the given DOM document. |
static IDocument |
createDocument(Element documentRootElement)
Create a document using a copy of the given Element as the document root element. |
static IDocument |
createDocument(File file)
Create a document by reading XML text previously saved to a file. |
static IDocument |
createDocument(File file,
String encoding)
Create a document by reading XML text previously saved to a file. |
static IDocument |
createDocument(IDocument document)
Create a new document that is a deep copy of the given document. |
static IDocument |
createDocument(InputSource inputSource)
Create a document by reading the XML text for the document from the given InputSource. |
static IDocument |
createDocument(Reader reader)
Create a document by reading the XML text for the document from the given Reader. |
static IDocument |
createDocument(String xml)
Create a document using the given XML text. |
static IDocument |
createDocument(String xml,
boolean deferParse)
Create a document using the given XML text, optionally deferring the parse of that XML until a later time. |
static IDocumentDefinition |
createDocumentDefinition()
Create a document definition instance. |
static IDocumentDefinition |
createDocumentDefinition(String documentTypeName)
Create a document definition with the given document type name. |
static IDocumentDefinition |
createNullDocumentDefinition()
Create a document definition for an empty/null document type. |
static String |
generateNamespacePrefix(String namespaceURI)
Generate a namespace prefix based on the given namespace URI. |
static String |
serializeElement(Element elem)
Serialize the given Element out as XML and return a String. |
static void |
serializeElement(Writer writer,
Element elem)
Serialize the given Element as XML out to the given Writer. |
static void |
serializeElement(Writer writer,
int indent,
int indentSize,
Element elem)
Serialize the given Element as XML out to the given Writer, using the given indent level and indentSize. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DocumentFactory()
Method Detail |
public static IDocument createDocument()
public static IDocument createDocument(String xml) throws DocumentParseException, DocumentException
DocumentParseException
DocumentException
public static IDocument createDocument(String xml, boolean deferParse) throws DocumentParseException, DocumentException
DocumentParseException
DocumentException
public static IDocument createDocument(Element documentRootElement)
public static IDocument createDocument(Reader reader) throws DocumentParseException, DocumentException
DocumentParseException
DocumentException
public static IDocument createDocument(File file) throws DocumentParseException, DocumentException
file
-
DocumentParseException
DocumentException
createDocument(File, String)
public static IDocument createDocument(File file, String encoding) throws DocumentParseException, DocumentException
file
- encoding
- The Java encoding style for the content in the given file.
DocumentParseException
DocumentException
public static IDocument createDocument(InputSource inputSource) throws DocumentParseException, DocumentException
DocumentParseException
DocumentException
public static IDocument createDocument(Document document)
public static IDocument createDocument(IDocument document)
public static String generateNamespacePrefix(String namespaceURI)
public static IDocumentDefinition createDocumentDefinition()
public static IDocumentDefinition createDocumentDefinition(String documentTypeName)
public static IDocumentDefinition createNullDocumentDefinition()
public static String serializeElement(Element elem) throws DocumentException
DocumentException
public static void serializeElement(Writer writer, Element elem) throws IOException, DocumentException
IOException
DocumentException
public static void serializeElement(Writer writer, int indent, int indentSize, Element elem) throws IOException, DocumentException
IOException
DocumentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |